You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <ma...@apache.org> on 2008/01/18 14:48:56 UTC

Re: PR42829: graceful restart with multiple listeners using prefork MPM can result in hung processes

On Fri, Jan 04, 2008 at 02:42:05PM +0100, Stefan Fritsch wrote:
> Hi,
> 
> this bug can be quite annoying because of the resources used by the hung
> processes. It happens e.g. under Linux when epoll is used.
> 
> The patch from http://issues.apache.org/bugzilla/show_bug.cgi?id=42829#c14
> has been in Debian unstable/Ubuntu hardy for several weeks and there have
> not been any complaints.
> 
> It would be nice if you could look at it and commit it to svn.

I can confirm that there are problems with the restart at least on
FreeBSD-4.x/prefork.

On FreeBSD-4.x/prefork I see this after a graceful restart:
--snip--
$ apachectl status

                      Apache Server Status for localhost

   Server Version: Apache/2.3.0-dev (Unix) mod_ssl/2.3.0-dev
          OpenSSL/0.9.7d-p1 DAV/2

   Server Built: Jan 16 2008 04:19:11
[..]
   CPU Usage: u4.45313 s4.3125 cu0 cs0 - .00454% CPU load
   .0265 requests/sec - 9 B/second - 372 B/request
   10 requests currently being processed, 7 idle workers

GGGGGG_G__GG____W...............................................
................................................................
[...]
--snip--

After another graceful restart, I see
GGGGGGGGGGGGGGGWG____...........................................
and the 'G' processes are stuck at state 'G'.

With the patch applied, I no longer see any of the hanging
"gracefully stuck" processes.

So, from my side, I'd +1 the patch (although I understand the intention
of the code, I have not "brain-traced" all code paths, so this is not
a final "code +1" but just a "appears to fix the problem +1").

Anyone else?

   Martin
-- 
<Ma...@Fujitsu-Siemens.com>        |     Fujitsu Siemens
http://www.fujitsu-siemens.com/imprint.html | 81730  Munich,  Germany

RE: No error message for startup errors with the Apache service.

Posted by Ashwani Kumar Sharma <As...@mindtree.com>.
OK James.



Thanks and Regards,
Ashwani Sharma
Mob: +91+9916454843
Off: +91-80-26265053


-----Original Message-----
From: James Park (pencil_ethics) [mailto:pencilethics.list@gmail.com] 
Sent: Sunday, January 20, 2008 7:06 PM
To: dev@httpd.apache.org
Subject: Re: No error message for startup errors with the Apache service.

Ashwani,

This is the wrong mailing list for your question.
Please send your question to users@httpd.apache.org.
This mailing list is for discussion related to httpd development.
Support questions belong in the users@ mailing list.

- James Park


DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.

Re: No error message for startup errors with the Apache service.

Posted by "James Park (pencil_ethics)" <pe...@gmail.com>.
Ashwani,

This is the wrong mailing list for your question.
Please send your question to users@httpd.apache.org.
This mailing list is for discussion related to httpd development.
Support questions belong in the users@ mailing list.

- James Park

No error message for startup errors with the Apache service.

Posted by Ashwani Kumar Sharma <As...@mindtree.com>.
Hi Folks,

When I accidently start Apache service on Windows on a port number which is
aleady engaged. Why I don,t see any log file being created by Apache?

If I try to strart apache exe httpd.exe from the cmd prompt I see the port
number error message being flashed on the console. Why this error message is
not seen in case of the service?



Thanks and Regards,
Ashwani Sharma
Mob: +91+9916454843
Off: +91-80-26265053




DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.