[Support]: Sometime OOM Killing frigate when when opening web-interface #22794
Replies: 3 comments 3 replies
-
|
The OOM (Out of Memory) kill is occurring because your container's memory limit (20GB) is being exceeded. Looking at your kernel logs, the Key issues to address:
# Example for eight cameras detecting at 1280x720, including logs
$ python -c 'print("{:.2f}MB".format(((1280 * 720 * 1.5 * 20 + 270480) / 1048576) * 8 + 40))'
253MBFor 11 cameras at default detect resolution, you'd need significantly more. Calculate based on your actual detect resolutions. (1)
detect:
width: 1280
height: 720
fps: 5
Recommended changes: detect:
enabled: true
width: 1280
height: 720
fps: 5
detectors:
onnx:
type: onnx
face_recognition:
enabled: falseAlso increase your docker-compose shm_size: shm_size: "512mb"Since you mentioned 0.16.4 was stable, the memory increase may be related to changes in 0.17.x. Monitor memory usage after these changes to identify which component is causing the growth. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
How to debug frigate.detector process? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you are having
System log:
Steps to reproduce
Version
0.17.1
In which browser(s) are you experiencing the issue with?
Google Chrome 146.0.7680.177
Frigate config file
docker-compose file or Docker CLI command
Relevant Frigate log output
Relevant go2rtc log output
Operating system
Other Linux
Install method
Docker Compose
Network connection
Wired
Camera make and model
Dahua
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
Version 0.16.4 was stable
Server: 20-core, 20Gb RAM, 1Tb SSD
Beta Was this translation helpful? Give feedback.
All reactions