{"message": "process memory usage is high", "level...
# ask-ai
c
{"message": "process memory usage is high", "level": "WARNING", "name": "livekit.agents", "memory_usage_mb": 906.31640625, "memory_warn_mb": 500, "memory_limit_mb": 0, "pid": 122156, "job_id": "AJ_kWY6FYy63bge", "timestamp": "2025-11-24T090353.126542+00:00"}
t
Thanks for reaching out, Babken. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're seeing a memory warning for
livekit.agents
(906 MB; warn threshold 500 MB). I’ll help you triage and act. What this means • The process exceeded the configured warning threshold but no hard limit is enforced (
memory_limit_mb
= 0). This is a cautionary alert, not an immediate crash. • 900+ MB can be normal for resource‑intensive agent tasks (noise cancellation, turn detection), but on small hosts it may cause instability. Actions to take now 1. Monitor short-term trends ◦ Check if memory keeps rising or stabilizes over minutes/hours. ◦ Watch CPU, swap use, and any dropped frames or latency spikes. 1. Reduce immediate load ◦ Lower agent concurrency or reduce simultaneous processed streams. ◦ Disable non‑essential audio processing features temporarily (e.g., advanced noise suppression) if enabled. 1. Adjust thresholds/config ◦ Increase
memory_warn_mb
if your environment normally uses this amount and you have headroom. ◦ Set a reasonable
memory_limit_mb
if you want the process to be constrained (be aware this can cause restarts if exceeded). 1. Scale resources ◦ If this server is on a low‑memory tier, move to an instance with more RAM; LiveKit recommends ~8 GB and 4 CPU cores for most voice AI agent workloads. 1. Collect diagnostics (if you want me to help further) ◦ Recent memory trend (last 30–60 minutes) ◦ Host total RAM and swap ◦ Which agent features are enabled (noise cancellation, turn detection, etc.) ◦ Whether this host is on a low‑memory platform (e.g., free tier) If you share the diagnostics above, I can suggest specific config changes or sizing for your workload. Would you like help gathering any of those metrics? Sources: Deploying to custom environments | LiveKit Docs | Automation & Knowledge Management Tools | livekit/livekit_composite | DeepW...