httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <rede...@raleigh.ibm.com>
Subject Re: cvs commit: httpd-2.0/server/mpm/threaded threaded.c
Date Mon, 02 Jul 2001 22:12:59 GMT
More info:

After letting MRPC = 0 version run for an hour I did a SIG_WINCH and finally
got over the 500 worker boundary. In fact, since all 500 workers were busy
at the restart they were all left in place and another 500 started (now there
are 1000 busy workers). After the initial near death experience on the server
it resumed normal operation. It ran with 1000 busy workers for almost 30 minutes
before I SIG_WINCHed it again. This time it ran up to about 1350 total workers
and eventually, after about another 30 minutes, settled down to about 1225 workers.

After about another 10 minutes I started killing copies of b. Eventually I
killed all of the bs and never saw any workers get idle cleaned up.

In addition, the error_log had a number of "long lost child came home!" after
the first SIG_WINCH and after the second SIG_WINCH I found a number of
"child pid XXXXX exit signal Segmentation fault (11)" (some of which resulted
in "long lost child came home!" messages - apparently they came home in a
body bag). 

Eventually I received a "Child XXXX returned a fatal error... Apache is exiting!"
message, so all of the top level processes are now owned by pid 1. Apache
continued serving pages for another hour until I killed it. 

Also, the first SIG_WINCH doubled the memory footprint of Apache from 3.5 MB
(in the first hour it grew from a little under 2 MB to a about 3.5) to almost
8 MB. Immediately after the second SIG_WINCH the size grew to 12 MB then
quickly fell back to 8 MB, then continued to grow at a slow rate until I killed it.

I failed to capture a copy of the status while all 500 or 1000 of the workers
were busy, but I did catch a couple at the end when I started shutting things
down.

The first table below was taken after both SIG_WINCHes and with 3 of the copies
of b killed (the top level Apache process has already died):

Server Version: Apache/2.0.20-dev (Unix)
Server Built: Jul 2 2001 13:21:22
 
Current Time: Monday, 02-Jul-2001 17:10:44 EDT
Restart Time: Monday, 02-Jul-2001 14:51:19 EDT
Parent Server Generation: 2
Server uptime: 2 hours 19 minutes 25 seconds
Total accesses: 2231015 - Total Traffic: 61.3 GB
CPU Usage: u927.47 s2424.57 cu.16 cs2 - 40.1% CPU load
267 requests/sec - 7.5 MB/second - 28.8 kB/request
751 requests currently being processed, 474 idle servers
 
_WWW___WWWW_WW____W__W_WW_____WWW_WW_WW_W_WWWW_W___WWWW_W__W__W_
_WW__W_WW__W__W_______W__WWS__WS_WW_............................
................................................................
.........W.WW._..WWWWW.___WWW_W_WW____W__W___WWWS_WS_WWWRW......
................................................................
................................................................
................_W_____W__WW__W__W___W__W____WWWWWW_WW__WWW_W__W
WWSWR.W_RW.._W.._W_W_.W..WR...__.WW.W_R_WWWWRR._R_RWWWWWWWW__WWW
WWWW_WW_W__W_W__WWWWWWW_WWW_W_WW__WWW____WW__WWW_W_WW___WWWW_WWW
WWW_W__WW_WWWWW_WWW__WW_W_WW__WWW___W_____W__WWW__W___WWW_W____W
W_W_W____W_W___WW_WW_W__W__W__W_WW_WWW_WWWWW__WW_W___W___WW__W_W
W_W_W_WWW__W_WW_WW_W_W___WWW___WWWWWW__W__W___W__.WW_W_W__W_WSWW
S___W.W_W.WW______W___WW_W._W_W.W_W_WW____WWW_WWW_WWWWW___W_WW_W
__WW_W_WWW_WWWWWW_WW_WWWW_W__WWW_WW__WWW_WWW_WWWWWW______WWWWWWW
WW_WWWW____WW__WW_W__WWWWWWWW_W_W_W___WW_WWW_WWWWW___WWW_WWW_WSW
WWWW__WWW_WWW_WWWW____WW_WWW_RWW___WWWWW__R_W_W_WWWW_W__W_WWW_W_
_WWWW_W_WW_W__WW_W_WW_WWWWWWWWWWWW_WWW_WWW__WWWWW____WWWRWRW_WW_
WWW_WWWW_WW_WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWW__WW_W_WW___WW_WWWW_WW___W_W_W_WW__WW_W_W_WWWWWWWWWWWWWWWWW
WWWRWWRWWWWWWWRRWWWWWWWWWRWWWWWWWWW_W_WWWWWW_WWWWW__WWWWWWWWWWWW
WWWWWWWWW_W_WWWWWWWW_KWW__W__WW_WW_R_W_WW__WWWWWW__W__WW_W_WW_W_
__WWWWW_WWWW__W______W_WWW__W___W__W_WW__WW_____WW__W_WW_W_WWWW_
_WW__W_W_W___W_WWWWWWW_W__WW__W_WWW_WR___WWW______W_W_WW_W_WW_WW
____WWWW_W____W__W_____W____....................................
................................................................   


This second one was taken 20 minutes after the last of the copies
of b was killed off. The values did not change for the 10 minutes
prior to this status.


Server Version: Apache/2.0.20-dev (Unix)
Server Built: Jul 2 2001 13:21:22
 
Current Time: Monday, 02-Jul-2001 17:34:51 EDT
Restart Time: Monday, 02-Jul-2001 14:51:19 EDT
Parent Server Generation: 1
Server uptime: 2 hours 43 minutes 32 seconds
Total accesses: 2367446 - Total Traffic: 66.4 GB
CPU Usage: u1038.69 s2726.54 cu.17 cs2.44 - 38.4% CPU load
241 requests/sec - 6.9 MB/second - 29.4 kB/request
95 requests currently being processed, 1130 idle servers
 
___________________________________________________W_W_____W____
_______WW__W__W__________WWS__WS_W__............................
................................................................
.........W.WW._..WWWWW.___WWW_W_WW____W__W___WWWS_WS_WWWRW......
................................................................
................................................................
................______W_________________________________________
__SWR.W_RW.._W.._W_W_.W..WR...__.WW.W_R_WWWWRR._R_RW____________
________________________________________________________________
________________________________________________________________
________________________________________________________________
______________________________________________W__.WW_W_W__W_WSWW
S___W.W_W.WW______W___WW_W._W_W.________________________________
________________________________________________________________
______________________________________________________________S_
W_______________W________WW___W_______W_________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
____________________________....................................
................................................................  


--
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it.  Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein

Mime
View raw message