When does this error come up: ```2025-10-30 05:31...
# ask-ai
f
When does this error come up:
Copy code
2025-10-30 05:31:02,810 - ERROR livekit.agents - process is unresponsive, killing process
2025-10-30 05:31:02,810 - [31mERROR[0m livekit.agents - process is unresponsive, killing process [90m{"pid": 196303, "job_id": "AJ_VP9Amkp6r7mo"}[0m
2025-10-30 05:31:02,810 - INFO livekit.agents - killing process
2025-10-30 05:31:02,810 - [32mINFO[0m livekit.agents - killing process [90m{"pid": 196303, "job_id": "AJ_VP9Amkp6r7mo"}[0m
t
Thanks for reaching out, Alexander. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm here to help you understand the error "process is unresponsive, killing process." This happens when a supervised process in the LiveKit Agents framework doesn't respond to ping requests within the set timeout. It's a way the system checks that everything is running smoothly. Some common reasons for this include: • The process might be stuck or waiting on something • Your system could be experiencing high CPU or memory usage • There might be a shortage of system resources The framework handles this by logging the error and stopping the process to keep everything stable. If you'd like, I’m more than happy to help you dig deeper into this and find a solution together. Just let me know! Sources: livekit-agents/livekit/agents/ipc/proto.py
f
Can you explain more about the high cpu usage point. When does the process usually hit high CPU usage? And what are the limit at which process is killed
t
High CPU usage in LiveKit processes can happen for a few reasons, and I’m here to help you understand them better: • Video Calls: Sometimes, lower-end devices with fewer CPU cores might find it challenging to handle real-time encoding, especially when features like noise cancellation or video processors are active. • Agent Workloads: Features such as noise cancellation or turn detection do require more CPU power. For most voice AI apps, LiveKit suggests having 4 cores and 8GB RAM per worker to keep things running smoothly. • AWS Deployment: If you’re using burstable instances like t3 or t4, CPU throttling can become an issue once the credits run out, which might cause performance to dip. Regarding process termination, here’s how it works based on certain thresholds: • CPU-Based Termination: If the CPU usage goes beyond the kill threshold for 10 monitoring cycles, the process using the most CPU gets terminated. This threshold is calculated as
(1 + MaxCpuUtilization) / 2
. • Memory-Based Termination: Processes will be stopped if they use more memory than the set limit, like the
memory_limit_mb
you have configured. • Unresponsive Processes: If a process doesn’t respond to ping requests within the timeout period, it will be terminated to keep things stable. If you’d like, I’m more than happy to guide you through adjusting these thresholds or help you look into any specific cases you’re dealing with. Just let me know! Sources: Optimizing Video Calls for Low-Powered Devices in LiveKit (JS SDK ≥ v2.14.0... | Deploying to custom environments | LiveKit Docs | Troubleshooting Latency and Timeout Errors with Turn Detection on AWS | livekit-agents/livekit/agents/ipc/proc_pool.py | Job lifecycle | LiveKit Docs