Apache is flooded with worker threads

Current Development version likely to have breaking changes
Post Reply
kobold81
Posts: 16
Joined: Fri Jan 11, 2019 4:42 pm

Apache is flooded with worker threads

Post by kobold81 »

Hello,

I am using 1.37.1 and each day, apache seems to crash overnight. When i restart apache, everything runs smoothly until the next morning. Digging deeper, I found that the maxworker of apache are used up. It seems to me that zoneminder keeps workerthreads alive and creates additional ones. I do not know how to stop this behaviour. The smes seems to apply to connections to mariadb. They got so numerous that mariadb waved the white flag.
Increasing both is no option for me, because they would run out e. g. on the next day.

Code: Select all

[Thu Sep 30 00:49:22.757753 2021] [cgi:error] [pid 402776] [client 192.168.0.73:50124] End of script output before headers: zms
[Thu Sep 30 00:53:53.240500 2021] [cgi:warn] [pid 389990] [client 192.168.0.73:50092] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/zms
[Thu Sep 30 00:53:53.242464 2021] [cgi:error] [pid 389990] [client 192.168.0.73:50092] Script timed out before returning headers: zms
[Thu Sep 30 00:58:53.340453 2021] [cgi:warn] [pid 389990] [client 192.168.0.73:50092] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/zms
[Thu Sep 30 01:40:46.726899 2021] [cgi:warn] [pid 389990] [client 192.168.0.73:54304] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/zms
[Thu Sep 30 01:40:46.727084 2021] [core:error] [pid 389990] (70007)The timeout specified has expired: [client 192.168.0.73:54304] AH00574: ap_content_length_filter: apr_bucket_read() failed
[Thu Sep 30 01:54:06.476085 2021] [cgi:warn] [pid 342296] [client 192.168.0.73:55492] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/zms
[Thu Sep 30 01:54:06.476326 2021] [core:error] [pid 342296] (70007)The timeout specified has expired: [client 192.168.0.73:55492] AH00574: ap_content_length_filter: apr_bucket_read() failed
[Thu Sep 30 02:07:14.225317 2021] [cgi:warn] [pid 389990] [client 192.168.0.73:56690] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/zms
[Thu Sep 30 02:07:14.225534 2021] [core:error] [pid 389990] (70007)The timeout specified has expired: [client 192.168.0.73:56690] AH00574: ap_content_length_filter: apr_bucket_read() faile
Post Reply