Bug 59121 - The fix to mod_http2 for bug 59078 broke server-status
Summary: The fix to mod_http2 for bug 59078 broke server-status
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_http2 (show other bugs)
Version: 2.4.18
Hardware: PC Linux
: P2 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-04 21:03 UTC by Robert Dinse
Modified: 2016-08-31 14:00 UTC (History)
0 users



Attachments
A screen shot showing thread as 'r' when most of them are really 'k'. (138.91 KB, image/png)
2016-03-04 21:03 UTC, Robert Dinse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Dinse 2016-03-04 21:03:04 UTC
Created attachment 33624 [details]
A screen shot showing thread as 'r' when most of them are really 'k'.

After downloading and installing the http2 module that fixed the problem with processes being stuck in gracefully exiting after doing a graceful restart, as
identified in bug #59078, while the fix did fix that problem it introduced a new
problem, now processes in keep-alive are instead displaying as 'R' read in the
server-status instead of 'K' for keep-alive.  But server-status still counts the
number in keep-alive in the upper portion.
Comment 1 Stefan Eissing 2016-03-09 15:47:27 UTC
Sorry, for responding so late.

As I see it, the scoreboard shows 45 threads that occupy workers, most of them in R, some in W. This does *not* show the connections in keepalive stat, as in the event MPM, these connections do not occupy a worker slot.

If you see the scoreboard of a worker MPM, you indeed see 'K' workers, as keepalive handling continues to occupy worker threads.

So, I think this is a misunderstanding of how event and scoreboard display things. But maybe I misunderstood what you meant?

Stefan
Comment 2 Robert Dinse 2016-03-10 20:42:18 UTC
This server is setup with the Event MPM and WAS showing workers in the 'K' keep-alive state until the fix for this module that corrected the getting stuck in graceful existing state.  And if you look at the top, you'll see it still shows a count with a number of workers in keep-alive even though the scoreboard
does not.
Comment 3 Stefan Eissing 2016-08-31 14:00:55 UTC
Server status behaviour has been restored in 2.4.20.