future-umbrella-45124
09/25/2025, 12:22 PMtall-airline-16756
09/25/2025, 12:22 PMtall-airline-16756
09/25/2025, 12:22 PMjob_memory_warn_mb and job_memory_limit_mb. For example, in Python:
opts = WorkerOptions(
job_memory_warn_mb=500,
job_memory_limit_mb=0,
)
• Just a quick note: these settings work for process-based job executors.
• Using the LiveKit CLI: If you're using LiveKit Cloud, you can easily check memory usage with the lk agent status command. Like this:
lk agent status
• This will show memory usage in the "Mem" column.
• System-Level Monitoring: For self-hosted setups, tools like top, htop, or ps are great for monitoring memory usage.
If you have any questions or want me to walk you through any of these steps, just let me know—I’m here to help!
Sources: agents/src/worker.ts | Agent deployment CLI reference | LiveKit Docs | Deploying to custom environments | LiveKit Docs | Deployment and scaling | LiveKit Docs | Logs, metrics, and telemetry | LiveKit Docsfuture-umbrella-45124
09/25/2025, 12:41 PMtall-airline-16756
09/25/2025, 12:41 PMlk agent status command, you'll first need to install the LiveKit CLI tool. Don't worry, I'll guide you through the steps:
• Mac: You can easily install it using Homebrew:
brew install livekit-cli
• Linux: Just run the install script:
`curl -sSL https://get.livekit.io/cli | bash`Alternatively, you can download it from the latest release.
• Windows: Use winget to install:
`winget install LiveKit.LiveKitCLI`Or grab it from the latest release.
Once you have it installed, just authenticate with your LiveKit Cloud account by running:
lk cloud auth
After you're logged in, checking your agent's status is straightforward:
• If you have a livekit.toml file in your current directory, simply run:
lk agent status
• If not, no worries! Just specify the agent ID like this:
lk agent status --id CA_MyAgentId
This will give you useful details like memory and CPU usage. If you have any questions or run into any issues, please feel free to reach out—I’m here to help!
Sources: cmd/lk/main.go | Agent deployment CLI reference | LiveKit Docs