httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23795] - mod_status reports too much CPU when using worker mpm
Date Mon, 27 Oct 2003 20:26:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23795>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23795

mod_status reports too much CPU when using worker mpm





------- Additional Comments From trawick@apache.org  2003-10-27 20:26 -------
The problem is apparently that each thread is using times() syscall to retrieve
info on CPU usage for entire process, and mod_status is joyfully adding up all
the values :)  What we really need is to pick the times() info that was
retrieved most recently by some thread in the process.

I'll attach a patch in a sec that seems to resolve the problem for me.  It would
be helpful if you could try it out.

Note that in the extended status table the same CPU seconds will be reported for
each thread.  I haven't done anything about that.  Perhaps "=" or some other
symbol should be printed for threads other than the first one.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message