apache processes keep hanging in state "graceful finishing" after issueing a /etc/init.d/apache2 reload The problem is well knows to apache and a patch is available. Please see https://issues.apache.org/bugzilla/show_bug.cgi?id=42829 for further reference and http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/mpm/prefork/prefork.c?r1=739608&r2=739607&pathrev=739608 for the patch which needs to be applied in gentoos ebuild. Reproducible: Always Steps to Reproduce: 1. start apache, do some requests 2. /etc/init.d/apache2 reload 3. http://localhost/server-status Actual Results: processes in state "G" piling up. in combination with mod_php and php connecting to a database like mysql you might have many mysql threads open in state "sleep" because of the apache/mod_php process not being shutdown.
I manually patched my installtion of www-servers/apache-2.2.9-r1 with the mentioned patch but the problem seems to persist :( [Thu Apr 09 15:06:35 2009] [notice] Graceful restart requested, doing restart [Thu Apr 09 15:06:35 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
As mentioned in the bug report the problem only occurs if apache is listening on more than one socket, e.g. port 80 and 443.
i have added the mentioned patch to 2.2.11-r1, otherwise this is probably a duplicate of bug 231913 *** This bug has been marked as a duplicate of bug 231913 ***