Hundreds of httpd processes and no response
Posted: Sun Jul 05, 2015 9:53 pm
Hello,
ZoneMinder 1.28.1 on CentOS 7 - Linux ### 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Installed using ZmRepo.
Running as a Virtual Machine on KVM / libvirt / CentOS 6.
All IP Cameras.
Everything works fine, for a minute or two, and then Apache stops responding. On closer inspection there are hundreds of httpd processes. So I restart httpd (takes a good 30 seconds) and all is well for another minute or two. I can see the processes slowly increasing up to around 200 or more.
Using Worker.c I have limited the processes (MaxClients) to around 40. But now Apache stops responding even sooner, as soon as the processes reach 40.
So I have concluded something is not clearing up the used processed, and locking up httpd processes, which MaxClients counts, and prevents me having more.
My error log says, repeatedly (every 10 seconds):
[Sun Jul 05 22:42:57.872802 2015] [:error] [pid 9579] [client 192.168.0.2:44330] ERR [socket_sendto( /var/lib/zoneminder/sock/zms-419223s.sock ) failed: No such file or directory], referer: http://192.168.0.4/zm/index.php?view=watch&mid=16
I do have working image streams - and a lot of the responses to that error are when there are no images streams at all.
Any suggestions would be helpful.
Thank you.
ZoneMinder 1.28.1 on CentOS 7 - Linux ### 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Installed using ZmRepo.
Running as a Virtual Machine on KVM / libvirt / CentOS 6.
All IP Cameras.
Everything works fine, for a minute or two, and then Apache stops responding. On closer inspection there are hundreds of httpd processes. So I restart httpd (takes a good 30 seconds) and all is well for another minute or two. I can see the processes slowly increasing up to around 200 or more.
Using Worker.c I have limited the processes (MaxClients) to around 40. But now Apache stops responding even sooner, as soon as the processes reach 40.
So I have concluded something is not clearing up the used processed, and locking up httpd processes, which MaxClients counts, and prevents me having more.
My error log says, repeatedly (every 10 seconds):
[Sun Jul 05 22:42:57.872802 2015] [:error] [pid 9579] [client 192.168.0.2:44330] ERR [socket_sendto( /var/lib/zoneminder/sock/zms-419223s.sock ) failed: No such file or directory], referer: http://192.168.0.4/zm/index.php?view=watch&mid=16
I do have working image streams - and a lot of the responses to that error are when there are no images streams at all.
Any suggestions would be helpful.
Thank you.