httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morten Wulff" <>
Subject [users@httpd] [1.3.26] processes hang in "Gracefully finishing" state with high CPU usage
Date Thu, 18 Nov 2004 18:05:13 GMT
Kernel 2.4.20-bf2.4 running Apache 1.3.26, PHP 4.1.2, MySQL 3.23.29.

In the past two weeks I have observed 2-4 Apache processes hanging in the  
state "Gracefully finishing" (according to /server-status):

--- begin output of `ps faux` ---
root      1162  0.0  0.3 142148 1008 ?  S    Nov05   0:32  /usr/sbin/apache
www-data 13064 26.2  0.5 147012 1512 ?  R    Nov12 559:56  \_  
www-data 17429 21.9  0.6 146996 1700 ?  R    Nov12 409:32  \_  
--- end ---

After killing the processes, the server runs fine for a couple of days  
until a new set of processes hang.

Examing the output from /server-status doesn't give me any clue as to what  
is happening:

--- begin output of /server-status ---
Srv  PID   Acc           M CPU    SS   Req Conn Child Slot   Client         
VHost         Request
0-18 17429 0/10016/61171 G 234.08 55128 0  0.0  58.10 316.64  
(unavailable) GET /forum/viewtopic.php
3-18 13064 0/9743/63319  G 231.27 68273 0  0.0  46.32 329.29  
(unavailable) GET /forum/viewtopic.php
--- end ---

The processes do not hang on the same script every time. The only pattern  
I have been able to observe is that the last request to all the hanging  
processes seems to have been to php scripts which connect to the MySQL  

I have looked through the error and access logs. AFAIKT the last request  
to a hanging process is not written to the access log. (Can't find  
matching IP address and request string.)

The server belongs to a hosting company, so I have no direct control over  
it (the techs at the company are aware of the problem but so far haven't  
been able to find a permanent solution).

Anyone have an idea as to what is going on?

Med venlig hilsen / Kind regards,

Morten Wulff

Self Injury Information and Support:

"I have a school book with my name on it."
"Your parents must be so proud." (

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message