{"message": "process memory usage is high", "level...
# ask-ai
b
{"message": "process memory usage is high", "level": "WARNING", "name": "livekit.agents", "memory_usage_mb": 500.76171875, "memory_warn_mb": 500, "memory_limit_mb": 0, "pid": 857, "job_id": "AJ_sYgxsZbPLF4U", "timestamp": "2025-09-17T121441.345338+00:00"} why is this issue occurring and how can we fix it
t
Thanks for reaching out, Harsh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I understand that seeing a high process memory usage warning can be concerning. This warning pops up because the memory used by a process has gone beyond the set threshold, which is currently at 500 MB. This often happens with resource-heavy features like Background Voice Cancellation (BVC), multilingual turn detection, or when using large language models. Here are some friendly suggestions to help you manage this: • Adjust memory thresholds: You might want to increase the
job_memory_warn_mb
and
job_memory_limit_mb
settings in the WorkerOptions to better fit your memory needs. • Upgrade infrastructure: It’s a good idea to use at least 4 CPU cores and 8GB of RAM per worker for smoother performance. Also, try to avoid free hosting tiers or AWS Fargate for production deployments to keep things stable. • Optimize model usage: Consider using smaller models or reduced quantizations (like Q4 instead of Q5) to reduce memory consumption. Just so you know, if the memory usage goes beyond the limit (which is currently set to 0, meaning no limit), the process will be automatically stopped to keep your system stable. Please feel free to reach out if you’d like any help walking through these steps—I’m here to support you! Sources: livekit-agents/livekit/agents/ipc/inference_proc_executor.py | Operational Guidance | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit Docs | tools/main/README.md
b
we are using livekit cloud only so how can we change the server settings
t
Thanks for reaching out! In LiveKit Cloud, server settings like memory thresholds are managed automatically by the platform, so they can’t be changed directly. But don’t worry—you can still configure your application to connect to LiveKit Cloud using environment variables and manage some features through the LiveKit Cloud Dashboard. When it comes to those memory usage warnings, here are a couple of things you might try: • Optimize your application to reduce memory usage by tweaking features or models. • Make sure your deployment matches LiveKit’s recommended setup, like using 4 CPU cores and 8GB RAM per worker. If you’re looking for full control over server settings, including memory thresholds, a self-hosted deployment might be the way to go. Just let me know if you’d like more info on that or if you want some help optimizing your current setup—I’m here to help! Sources: .env.example | .env.example | src/room/RegionUrlProvider.ts | LiveKit Server Components | livekit/livekit_composite | DeepWiki | Deploying LiveKit | LiveKit Docs