<#C048FRL1N2C|cloud> I'm experiencing persistent ...
# cloud
n
#cloud 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. Thanks!
r
Understanding Exit Code -9 Exit code -9 specifically means the process received a SIGKILL signal, which cannot be caught or ignored by the application. supervised_proc.py:290-294 This error is logged when a supervised process exits unexpectedly, and the system distinguishes between processes that were intentionally killed versus those that crashed. Process Management in LiveKit Agents LiveKit Agents uses a process supervision system. The
SupervisedProc
class manages child processes and monitors their health through ping/pong mechanisms. supervised_proc.py:38-64 When a process becomes unresponsive or exceeds resource limits, the supervisor can send kill signals. supervised_proc.py:240-254 Memory Monitoring and Limits The worker configuration includes memory monitoring settings that could be related to your crashes: worker.py:168-173 The system monitors memory usage and can kill processes that exceed the configured
job_memory_limit_mb
threshold. Common Causes and Solutions Based on the your message, several factors can cause exit code -9 exits: 1. Memory-intensive features: BVC noise cancellation and multilingual turn detection require significant memory. If you're using these features on low-memory instances, they may trigger OOM kills. 2. Resource constraints: Low-resource hosting providers like Render.com's free tier cannot support memory-intensive agent features. 3. Most likely is your Agent logic is using too much memory in your business logic or you are using a server with too few resources or job_memory_limit_mb is just set too low for your agents need. Notes The exit code -9 is a system-level signal that typically indicates resource exhaustion rather than application bugs. The LiveKit Agents framework has robust process management and graceful shutdown mechanisms, so persistent -9 exits usually point to infrastructure or configuration issues rather than code problems. Be sure to review this guide: https://docs.livekit.io/agents/ops/deployment/
n
Oh okay!! Thank you so much!! This was really helpful!
w
Thanks @refined-appointment-81829 for the reply!
b
@refined-appointment-81829 in our worker, the
job_memory_limit_mb
threshold is the default 0 so it should not be limited, and we can see from our pod statistics that the memory limit is not being reached. Is there any other reason for this error aside from memory usage? Thank you.
r
Maybe sigkill is being sent to the process?