when deploying to livekit cloud I sometimes see in...
# ask-ai
c
when deploying to livekit cloud I sometimes see in the logs out of memory messages. What’s going on?
t
Thanks for reaching out, Guillaume. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I understand that encountering out of memory messages during deployment in LiveKit Cloud can be frustrating. These issues might happen for a few reasons: • Memory Configuration Issues: It’s a good idea to double-check your agent's memory settings, like
jobMemoryWarnMB
and
jobMemoryLimitMB
, to make sure they’re set just right. • Resource-Intensive Operations: Sometimes, features like
RecorderIO
can use a lot of memory and cause errors. If you’re working with short audio, you might want to try
rtc.AudioStream
as a lighter alternative. • Deployment Environment Constraints: Also, if your deployment environment doesn’t have enough memory allocated, that could be the culprit. Here are some steps you can take to troubleshoot this together: 1. Take a look at your deployment logs via the LiveKit Cloud dashboard or by running
lk agent logs
in the CLI. 2. Review your agent’s memory-related settings to ensure they’re appropriate for your workload. 3. Observe your resource usage patterns and see if any adjustments might help. If you’re comfortable sharing the exact error message, your agent configuration (especially the memory settings), and some details about your deployment environment, I’d be happy to help you dig deeper and find a solution that works best for you. Sources: agents/src/worker.ts | Capturing the First Few Seconds of a Call for Processing | Deploying to custom environments | LiveKit Docs | livekit/livekit_cloud_agent.pb.go | Log collection | LiveKit Docs