meta data for this page
  •  

100% CPU and MEM used

After some while of working, ZM eats all system memory causing CPU to goes to 100%.

Workaround

Limit resurces in systemd service:

sudo systemctl edit zoneminder.service
[Service]
MemorySwapMax=0
MemoryHigh=5G
MemoryMax=6G
 
TimeoutStopSec=30
systemctl daemon-reload
systemctl stop zoneminder.service
systemctl start zoneminder.service
systemctl status zoneminder

valgrind –leak-check=full ffmpeg -rtsp_transport tcp -i rtsp:192.168.177.187/ch0_0.h264 -f null -