{"message": "process memory usage is high", "level...
# ask-ai
w
{"message": "process memory usage is high", "level": "WARNING", "name": "livekit.agents", "memory_usage_mb": 626.05078125, "memory_warn_mb": 500, "memory_limit_mb": 0, "pid": 452, "timestamp": "2025-10-31T182104.690835+00:00"} How to fix this issue?
t
Thanks for reaching out, Kushank. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The warning you’re seeing means that the process memory usage has gone beyond the set warning threshold of 500MB. No worries—here are a few ways to tackle this: • You might consider increasing the
memoryWarnMB
and
memoryLimitMB
settings in your configuration to better fit your workload. For instance, setting
memoryWarnMB
to 1024MB and
memoryLimitMB
to 2048MB often works well for standard applications. • Another helpful step is to optimize memory use by choosing lightweight options for short tasks, like using
rtc.AudioStream
instead of
RecorderIO
. • Also, keep an eye out for any potential memory leaks in your agent code and try to optimize how resources are used. If you’d like, I’m here to help you with configuration or debugging—just let me know! Sources: Deploying to custom environments | LiveKit Docs | pkg/stats/monitor.go | Capturing the First Few Seconds of a Call for Processing | Node.js Agents Architecture | livekit/livekit_composite | DeepWiki | utils/hwstats/memory_linux.go