creamy-tiger-14805
10/31/2025, 6:18 AMprocess memory usage is high
getting this log, on my agenttall-airline-16756
10/31/2025, 6:18 AMcreamy-tiger-14805
10/31/2025, 6:18 AM{
"stream": "stdout",
"level": "WARNING",
"service": "cloud.livekit.io",
"memory_usage_mb": 582.86328125,
"host": "CAW_XKEzZBoosZ2A",
"name": "livekit.agents",
"pid": 41473,
"source": "CA_PuovLhQDNhZu",
"memory_limit_mb": 0,
"timestamp": "2025-10-31T06:16:37.047063+00:00",
"memory_warn_mb": 500
}tall-airline-16756
10/31/2025, 6:18 AMmemory_usage_mb, memory_warn_mb, and memory_limit_mb.
2. Next, consider the workload your agent is handling. Sometimes features like enhanced noise cancellation or VAD plugins can cause memory use to climb.
3. You might want to adjust the memory thresholds in your configuration. For example, increasing the job_memory_warn_mb value can help reduce warning messages, or setting a job_memory_limit_mb can enforce stricter limits if needed.
4. If your setup involves Docker or cgroup-managed environments, double-check that the agent recognizes any container-imposed memory limits by reviewing cgroup files such as /sys/fs/cgroup/memory/memory.usage_in_bytes.
5. Also, keep an eye out for external factors like AI models that have high memory demands, as these can contribute to increased usage.
If you continue to experience issues, please don’t hesitate to share more details—like your agent version, deployment environment, and any relevant log excerpts. I’m here to help you every step of the way!
Sources: utils/hwstats/memory_linux.go | Still Have Questions | livekit-agents/livekit/agents/worker.py | agents/src/ipc/supervised_proc.ts | Deploying to custom environments | LiveKit Docstall-airline-16756
10/31/2025, 6:18 AMmemory_limit_mb: 0), the process won’t be stopped automatically.
Here are a few steps you might consider:
• If this level of memory use is normal for your workload, you might want to increase the memory_warn_mb threshold.
• If you'd prefer to have a memory limit in place, you can set a value for memory_limit_mb in the WorkerOptions configuration.
• Take a look at the agent’s workload to spot any memory-heavy tasks, like enhanced noise cancellation or VAD plugins, and see if there’s room to optimize.
If you’d like, I’m here to help you adjust these settings or dig deeper into the workload analysis. Just let me know!creamy-tiger-14805
10/31/2025, 6:21 AMtall-airline-16756
10/31/2025, 6:22 AMWorkerOptions configuration.
• Implement your own custom memory-based load balancing functions.
• Adjust container-level memory limits if you’re deploying with Docker or similar tools.
Please feel free to reach out if you’d like me to walk you through self-hosting or if you need any help optimizing your current setup. I’m here to help!
Sources: Deploy and scale agents on LiveKit Cloud | Worker options | LiveKit Docs | fly.io/fly.toml | livekit-agents/livekit/agents/ipc/supervised_proc.py | Deploying to custom environments | LiveKit Docscreamy-tiger-14805
10/31/2025, 6:42 AMtall-airline-16756
10/31/2025, 6:42 AM