blue-napkin-7975
11/08/2025, 6:37 AMtall-airline-16756
11/08/2025, 6:37 AMtall-airline-16756
11/08/2025, 6:39 AMmemory_limit_mb and memory_warn_mb for agents, or MaxMemory for egress nodes, so they better fit your specific workload.
3. Provision Adequate Resources: It’s important to make sure your server has enough resources. A good starting point is 4 CPU cores and 8GB RAM per agent worker, and you can scale up depending on how many users you’re supporting at once.
4. Use Profiling Tools: If you want to dive deeper, tools like the Node.js profiler, Python’s memory_profiler, or Go’s pprof can help you spot any memory bottlenecks, especially in custom components you might be working on.
5. Optimize Code: When building custom components, try to manage object lifetimes carefully, keep buffer sizes small, and follow best practices to keep memory use efficient.
Please feel free to reach out if you’d like more help or have any questions about these steps—I’m happy to assist!
Sources: Deploying to custom environments | LiveKit Docs | livekit-agents/livekit/agents/ipc/supervised_proc.py | agents/src/ipc/supervised_proc.ts | pkg/stats/monitor.go