zmc consumes 100% CPU if video stream cannot be opened
Posted: Tue Nov 25, 2014 12:31 am
Hi everyone,
I my setup I have few cameras, one of which has connectivity problems. When I start Zoneminder 1.28.0 (but I think the problem does not depend on version), it starts to consume 100% CPU trying to read from this camera. From logs:Disabling detection does not help.
1. How to really disable camera capturing?
2. Where to look at for the solution? For example, if I provide invalid host name, the result is the same (100% CPU load). I think there should be a sleep between frequent capturing attempts.
Thanks!
I my setup I have few cameras, one of which has connectivity problems. When I start Zoneminder 1.28.0 (but I think the problem does not depend on version), it starts to consume 100% CPU trying to read from this camera. From logs:
Code: Select all
ERR Unable to open input rtsp://10.0.0.1:8080/ due to: Operation now in progress zm_ffmpeg_camera.cpp 264
Code: Select all
# /usr/bin/zmpkg.pl start
# zmu -m 3 -D
# top -d 10
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15968 www-data 20 0 214676 79572 67804 R 99.8 2.6 0:19.04 /usr/bin/zmc -m 1
15952 www-data 20 0 171312 36744 25896 S 7.6 1.2 0:01.71 /usr/bin/zmc -m 2
2. Where to look at for the solution? For example, if I provide invalid host name, the result is the same (100% CPU load). I think there should be a sleep between frequent capturing attempts.
Thanks!