I'm experiencing persistent crashes with LiveKit A...
# ask-ai
n
I'm experiencing persistent crashes with LiveKit Agents where processes are being killed with exit code -9. Here are the details:
Copy code
2025-08-14 11:49:05,272 - ERROR livekit.agents - process exited with non-zero exit code -9 {"pid": 553, "job_id": "AJ_YLpAbyhRqFNQ"}
Please let me know, if any additional information is required.
t
Thanks for reaching out, Nikhil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Could you share a bit more about your setup? For example: • Which operating system and version are you using for LiveKit Agents? • How much memory does your system have available? • Have you spotted any other logs or patterns right before the crash happens?
n
OS: ubuntu-latest 1 GB Memory No patterns but it happens quite random
t
It looks like the crash with exit code -9 is probably because the system ran out of memory. LiveKit Agents need at least 4GB of RAM to run smoothly, and since your system has just 1GB, it’s a bit tight for stable operation. Here are a few steps that might help: • Increase Memory Allocation: If possible, upgrading your system to at least 4GB of RAM would make a big difference. If you’re using a virtual machine or container, double-check that the memory limits are set correctly. • Keep an Eye on System Resources: Tools like
top
,
htop
, or
free -h
can give you a good snapshot of memory and CPU usage while the agent is running. Also, try to avoid running other heavy applications at the same time. • Tweak Agent Configuration: It might help to review and adjust the agent’s configuration files to better fit the resources you have available. If upgrading your system isn’t an option right now, maybe try running fewer agents or switching to a machine with more power. And hey, if you want, I’m here to help with the configuration or any other troubleshooting you might need! Sources: livekit-plugins/livekit-plugins-browser/src/helper_main_linux.cpp | Infrastructure & Deployment | livekit/livekit_composite | DeepWiki
n
you asked for configuration for system livekit agents are running right? not of livekit cloud instance right as we are using hosted version of livekit cloud and our agents are running on the system mentioned above
t
Thanks for clearing that up! I was talking about the setup of the LiveKit Agents on your system, not the LiveKit Cloud instance itself. Since you’re using the hosted LiveKit Cloud, we’ll want to focus on making sure the local system where the agents run is running smoothly. If you’re able to share the configuration file for the agents, I’d be happy to take a look and suggest any tweaks that could help with stability, especially given the limited resources. Just let me know if you want a hand finding or sharing that file—I’m here to help!
n
Which configuration file?
t
Hey there! The configuration file for LiveKit Agents is called
livekit.toml
, and you’ll usually find it in the working directory where you run your agent commands. This file holds the key deployment settings for your agents, like: • Project Configuration: This includes the subdomain of your LiveKit project. • Agent Configuration: Here, you’ll find the agent ID and the regions where your agent will be deployed. If you need to create a new
livekit.toml
file, just run this command:
Copy code
lk agent config
And if you already have this file, feel free to share its contents (just make sure to leave out any sensitive info). I’m here to help you fine-tune the setup and get everything running smoothly!