Zoneminder intermitant very high load
Posted: Thu Jun 30, 2016 6:49 pm
TL;DR: Zoneminder processes go out of control after a day or so of running cause huge load (upwards of 100). Where do start looking for the cause of this?
Setup: I am running 8 IP cameras at a remote location. The are ZModo ZP-IBH13-W. These cameras are set to broadcast at 720p 4fps due to bandwidth issues going over the VPN connection. There is an OpenVPN server at this location.
At my location I have a Dell Poweredge 2950 server running a couple of Virtual Machines. One of these virtual machines is running Ubuntu 16.04 w/ Zonemineder 1.29 (8gb of RAM, 4 cpu cores). I used this guide to setup Zoneminder: https://wiki.zoneminder.com/Ubuntu_Serv ... y_way.This VM is VPN'd into the remote network via the OpenVPN server. It is a bridged connection, so it appears in the same subnet as the cameras.
Zoneminder is setup to read streams from these 8 cameras with a RTP FFmpeg streams (found here: viewtopic.php?t=22573). I have all the cameras set to max out at 8 fps because when the VPN connection drops, FFMPEG tries to read in the streams at 200fps cause huge server load. I also have most of the feeds set to use black and white to reduce server load.
I bought zmNinja-pro to watch the cameras on my phone (https://play.google.com/store/apps/deta ... mninja_pro).
Everything works fine initially (recording, motion detect, web interface, mobile app). Server load stays around 1 when there is limited activity and jumps to 3-4 when there is more activity. This is find since I have 4 cpu cores provisioned to the VM Zoneminder is running on.
The issue: After about 24 hours of working correctly, something in Zoneminder goes haywire. The load jumps very high (upwards of 100) causing nothing to work excpet ssh on the VM. As soon as login and restart the Zoneminder service, load falls back to nomal levels and everything begins working again.
The questions: Has anyone had this issue or something similar? Where should I start looking to identify and correct this issue?
Setup: I am running 8 IP cameras at a remote location. The are ZModo ZP-IBH13-W. These cameras are set to broadcast at 720p 4fps due to bandwidth issues going over the VPN connection. There is an OpenVPN server at this location.
At my location I have a Dell Poweredge 2950 server running a couple of Virtual Machines. One of these virtual machines is running Ubuntu 16.04 w/ Zonemineder 1.29 (8gb of RAM, 4 cpu cores). I used this guide to setup Zoneminder: https://wiki.zoneminder.com/Ubuntu_Serv ... y_way.This VM is VPN'd into the remote network via the OpenVPN server. It is a bridged connection, so it appears in the same subnet as the cameras.
Zoneminder is setup to read streams from these 8 cameras with a RTP FFmpeg streams (found here: viewtopic.php?t=22573). I have all the cameras set to max out at 8 fps because when the VPN connection drops, FFMPEG tries to read in the streams at 200fps cause huge server load. I also have most of the feeds set to use black and white to reduce server load.
I bought zmNinja-pro to watch the cameras on my phone (https://play.google.com/store/apps/deta ... mninja_pro).
Everything works fine initially (recording, motion detect, web interface, mobile app). Server load stays around 1 when there is limited activity and jumps to 3-4 when there is more activity. This is find since I have 4 cpu cores provisioned to the VM Zoneminder is running on.
The issue: After about 24 hours of working correctly, something in Zoneminder goes haywire. The load jumps very high (upwards of 100) causing nothing to work excpet ssh on the VM. As soon as login and restart the Zoneminder service, load falls back to nomal levels and everything begins working again.
The questions: Has anyone had this issue or something similar? Where should I start looking to identify and correct this issue?