I’m getting a lot of warnings that process memory ...
# ask-ai
n
I’m getting a lot of warnings that process memory usage is high when the conversation begins. Is this normal/ignorable or does it imply I am doing something that is using up memory?
{"message": "process memory usage is high", "level": "WARNING", "name": "livekit.agents", "memory_usage_mb": 546.0, "memory_warn_mb": 500, "memory_limit_mb": 0, "pid": 119, "job_id": "AJ_6AJvMYrNf3z3", "timestamp": "2025-11-18T19:01:35.164642+00:00"}
t
Thanks for reaching out, Rifath. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like you’ve encountered the warning "process memory usage is high," which means a process's memory usage has gone beyond the set warning threshold (
memory_warn_mb
), but it hasn’t reached the critical point where the process would be stopped. Think of this as an early nudge to keep an eye on things and maybe tweak your setup a bit. Here are some friendly steps to help you address this: • Increase Memory Allocation: Make sure your worker has enough memory. For most voice AI apps, LiveKit suggests starting with 4 cores and 8GB per worker. • Monitor and Optimize: Take a look at the warning details like current memory usage and the warning threshold to help debug and fine-tune your application. • Adjust Memory Configuration: You have the flexibility to change the memory thresholds by updating
memory_warn_mb
(for warnings) and
memory_limit_mb
(for when the process should terminate). • Scale Infrastructure: Depending on what your app needs, you might want to scale horizontally by adding more workers or vertically by increasing memory per worker. If you’d like, I’m here to help you dive deeper into optimizing your setup or understanding those memory usage patterns better. Just let me know! Sources: livekit-agents/livekit/agents/ipc/supervised_proc.py | agents/src/ipc/supervised_proc.ts | Deploying to custom environments | LiveKit Docs