Mailing List Archive

MPM Event Workers stuck in 'Logging' state resulting in resource exhaustion (2.4.46)
Hello all!

I've recently come across an issue that's caused httpd to slowly choke out my server's resources over time. I spent a little bit searching through recently fixed bugs and found this issue<https://bz.apache.org/bugzilla/show_bug.cgi?id=63010> about memory consumption problems with mod_proxy_hcheck, and saw behavior like described in that thread.

I applied the configuration workaround (Setting ProxyHCTPSize to a reasonably large amount so as the threads it needs shouldn't get exhausted even if HCs pile up.) That mostly seemed to clear up the issue, as my resource usage has been considerably lower since then.

However, as I've been keeping an eye on it, I'm still seeing usage creep up. Pulling up my server status page, I noticed the scoreboard full of "L"s, which struck me as incredibly odd. I continued to refresh the status for a while and they just continued to stay stuck. I also noticed it only seemed to happen on workers in the h2 protocol. I've pasted an example of what I'm seeing at the end of this message. These stuck workers are also contributing to an ever-increasing ms/request size. If I give it long enough through periods of low (or no) traffic, they *eventually* seem to time out or finish, but that's not so useful during the workday.

My "workaround" has been a cron job to gracefully restart every so often, but that feels like a huge duct-tape solution.

Does anyone have any idea where I might have gone wrong in my config that I'm ending up with so many workers stuck in this state?

I'm curious, as I've noticed I can't trigger this issue by using HTTP 1.1, if this other issue<https://bz.apache.org/bugzilla/show_bug.cgi?id=64234> is related, but I'm not seeing any messages like speaks of.

Cheers,
Chris
Re: MPM Event Workers stuck in 'Logging' state resulting in resource exhaustion (2.4.46) [ In reply to ]
I realize now I forgot to attach the Scoreboard example. Here it is:

Scoreboard example:
Server Version: Apache/2.4.46 (Amazon) OpenSSL/1.0.2k-fips mod_auth_kerb/5.4 SVN/1.13.0 PHP/7.3.23
Server MPM: event
Server Built: Aug 24 2020 18:40:26
________________________________
Current Time: Monday, 05-Apr-2021 10:37:52 EDT
Restart Time: Sunday, 04-Apr-2021 22:30:13 EDT
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 12 hours 7 minutes 38 seconds
Server load: 0.11 0.10 0.40
Total accesses: 2009 - Total Traffic: 44.7 MB - Total Duration: 6470878053620
CPU Usage: u99.1 s33.29 cu114 cs50.57 - .68% CPU load
.046 requests/sec - 1074 B/second - 22.8 kB/request - 3220940000 ms/request
24 requests currently being processed, 76 idle workers
Slot
PID
Stopping
Connections
Threads
Async connections
total
accepting
busy
idle
writing
keep-alive
closing
0
17169
no
0
yes
6
19
0
0
0
2
26160
no
0
yes
7
18
0
0
0
3
23389
no
0
yes
2
23
0
0
0
4
26234
no
0
yes
9
16
0
0
0
Sum
4
0
0

24
76
0
0
0
________L__LL___L_L____L_.........................________L_____
_L_L_L_LLL____L____W________________L__L___LL__L__L___L_L_L__...
................................................................
................................................................
................................................................
................................................................
................