I've just installed Zoneminder with a single Wanscam JW0011 IP camera ( I have another one to install, but I'm getting things stable first ). I basically have things configured properly, I think, but I have 1 major issue: zma rises to 100% CPU after a couple of minutes of operation.
My setup:
- quad-core AMD A8-5600K APU
- 16GB RAM
- 1 IP camera capturing @ 640x480, 24bit colour
- 3 zones, all at 'best, high sensitivity'
When I restart ( systemctl restart zoneminder ), I get 3 zma processes ( 1 per zone, I assume ), and they each consume between 2% to 5% of CPU resources. Then after a couple of minutes, they rise to 100%.
I've tried setting all zones to 'fast, low sensitivity', and this has no effect. Anyway, I doubt whether my system is insufficient for running 3 zones with max settings. I assume something is crashing or otherwise getting confused. Interestingly, motion detection and recording appears to continue as best it can ... but I get a lot of 'buffer overrun' errors. I currently have my buffer set to 100 frames.
Lastly, when I inspect the log, when things have gone haywire, I see:
Code: Select all
2014-06-22 10:56:22.339234 zma_m1 16046 INF Monitor-1: 96000 - Processing at 250.00 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:21.662783 zma_m1 16010 INF Monitor-1: 94000 - Processing at 333.33 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:21.575049 zma_m1 16052 INF Monitor-1: 100000 - Processing at 333.33 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:20.583221 zmc_m1 16000 WAR Buffer overrun at index 96, image 3196, slow down capture, speed up analysis or increase ring buffer size /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 2803
2014-06-22 10:56:20.440441 zmc_m1 16040 INF Monitor-1: 3000 - Capturing at 9.62 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 2831
2014-06-22 10:56:19.987130 zma_m1 16046 WAR Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1181
2014-06-22 10:56:19.134314 zma_m1 16010 WAR Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1181
2014-06-22 10:56:18.567074 zma_m1 16046 INF Monitor-1: 95000 - Processing at 333.33 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:18.160087 zma_m1 16052 INF Monitor-1: 99000 - Processing at 333.33 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:18.110081 zma_m1 16010 INF Monitor-1: 93000 - Processing at 250.00 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:15.322121 zma_m1 16046 INF Monitor-1: 94000 - Processing at 250.00 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:15.096618 zma_m1 16052 INF Monitor-1: 98000 - Processing at 250.00 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:14.771415 zma_m1 16010 INF Monitor-1: 92000 - Processing at 250.00 fps /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1153
2014-06-22 10:56:14.557607 zma_m1 16052 WAR Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size /var/tmp/portage/www-misc/zoneminder-1.27.0/work/ZoneMinder-1.27.0/src/zm_monitor.cpp 1181
Any ideas?