I'm running Zoneminder v1.36.4 in a docker container zoneminderhq/zoneminder:latest-ubuntu18.04 (in an Ubuntu 20.10 docker host system). Everything runs perfect so far with 5 cameras (3 different models, 1 WiFi, 4 PoE) installed.
Two of the cameras sometimes does not respond (or does not respond fast enough) and the stream breaks up - for what reason ever (I think it's a camera firmware bug). Wen I try to watch the stream at the same time with VLC, I also see this stream problem, so it's not a Zoneminder issue. This situation sometimes last for a couple of minutes.
BUT, when this happens (which Zoneminder logs it as an "Failed to capture image from monitor ..." entry in the log), I will get suddenly a new hanging zmu process which NEVER ends. So over the time I will end up with many dozens of "dead" apache2 processes with zmu child processes. If the number of these processes is too high, the Zoneminder web UI does not longer respond and I have to restart Zoneminder or delete all the hanging zmu processes manually to solve this situation. Even if the camera is responding later again correctly, these dead zmu processes will never end. In fact, I will get 3 new processes for each of this situation because "apache2 -k start" starts "sh -c /usr/bin/zmu -m<number> -s" which starts "zmu -m<number> -s".
This is an example excerpt of such a process sub tree, e. for monitor 3:
All of these dead apache2 processes are belong to one parent (in this example pid 439)...
root 439 1 0 Jul13 ? 00:00:03 /usr/sbin/apache2 -k start
...
www-data 292448 439 0 09:16 ? 00:00:12 /usr/sbin/apache2 -k start
www-data 312554 292448 0 10:24 ? 00:00:00 sh -c /usr/bin/zmu -m3 -s
www-data 312555 312554 0 10:24 ? 00:00:00 /usr/bin/zmu -m3 -s
www-data 299050 439 0 09:37 ? 00:00:08 /usr/sbin/apache2 -k start
www-data 310367 299050 0 10:16 ? 00:00:00 sh -c /usr/bin/zmu -m3 -s
www-data 310368 310367 0 10:16 ? 00:00:00 /usr/bin/zmu -m3 -s
...
Maybe, I can solve this situation by configuration, but I was not able to find a useful option for the zmu command which may help here (e.g. a timeout). Maybe, it looks like a problematic error handling in the zmu process for such a case, which ends up in never exiting this process.
Any ideas about how to resolve this situation? I'm the only one with such a problem?
Thanks,
Frank