orange-mouse-65980
10/20/2025, 12:39 PM2025-10-20T06:01:24.572319778Z stdout F {"message": "process memory usage is high", "level": "WARNING", "name": "livekit.agents", "memory_usage_mb": 703.51171875, "memory_warn_mb": 700, "memory_limit_mb": 1024, "pid": 21589, "job_id": "AJ_kwhrnNyD5VKV", "timestamp": "2025-10-20T06:01:24.572186+00:00"}
In out agent we set "memory_warn_mb": 700, "memory_limit_mb": 1024,
and for some call memory_limit_mb exit and the full process terminate.
Do you have any clue why an agent session could take > 1GB of memory?
Thanksworried-knife-36498
10/20/2025, 12:43 PMworried-knife-36498
10/20/2025, 12:44 PMbig-breakfast-84263
10/20/2025, 1:19 PMrefined-appointment-81829
10/20/2025, 4:19 PMsquare-spoon-72769
11/17/2025, 11:06 AMbetter-house-57730
11/29/2025, 10:54 AMHere my config if it helps:
### Speech-to-Text (STT) - With Plugin
- **Model:** `Deepgram nova-3`
- **Language set:** `en-US`
- **Endpoint:** `https://api.eu.deepgram.com/v1/listen` (Europe)
- **MIP Opt-Out:** `True` (Model Improvement Program disabled)
### Large Language Model (LLM) - With Livekit Inference
- **Model:** `gemini-2.5-flash`
### Text-to-Speech (TTS) - With Plugin
- **Model:** `ElevenLabs eleven_flash_v2`
### Voice Activity Detection (VAD)
- **Provider:** Silero
- **Configuration:** `silero.VAD.load()`
### Turn Detection
- **Model:** `EnglishModel()` (English-only to match Deepgram)
### Session Features
- **Preemptive Generation:** `True`
### Room Input Options
- **Noise Cancellation:** `BVC()`
### First Greeting
- **Message:** "Hi, this is XXX from YYY Support. What can I help you with today?"
- **Manual Send:** Yes (sent via `session.say()`)melodic-arm-17634
12/08/2025, 6:33 PMbetter-house-57730
12/09/2025, 10:49 AMjolly-air-155
12/09/2025, 10:53 AMjob_memory_warn_mb for the AgentServer to avoid this warning. or if you are asking why it’s using that many RAM, it will be helpful if you can provide an example that can reproduce the issue.melodic-arm-17634
12/09/2025, 4:52 PMrefined-appointment-81829
12/09/2025, 9:39 PMEOU multlingual instead of EOU english.
I expect you are prewarming some of this in which case it will be used. If you have at least one session using EOU you should seem the turn model memory usage too.square-spoon-72769
12/10/2025, 11:23 AMrefined-appointment-81829
12/10/2025, 12:42 PMsquare-spoon-72769
12/10/2025, 1:21 PMenough-match-43171
12/15/2025, 12:40 PMif __name__ == "__main__":
agents.cli.run_app(
agents.WorkerOptions(
entrypoint_fnc=browser_agent_entrypoint, prewarm_fnc=prewarm,
job_memory_warn_mb=2000
)
)