You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by pradeep kumar <pr...@gmail.com> on 2006/03/23 15:23:31 UTC
Restart with Multiple Listen directive crashes httpd
Hi,
Using 2.0.55 I noticed httpd crashing when a Listen directive is commented
out with a restart. This is what I did. I took the standard configuration of
httpd.conf and added another Listen directive with the IP adress of the
machine.
#diff httpd.conf httpd-std.conf
155d154
< Listen 16.41.227.148:80
Then started Apache. Later, on commenting out this Listen directive only and
issuing a restart ( a stop and start does not cause any problem) I noticed
that the child processes crashed. I also noticed the CPU utilization hitting
100%. Once the child process crashes a new child process comes up which
subsequently crashes later.
I tried 2.0.54 and this also causes the child process to crash, however the
CPU utilization does not hit 100% but is much higher than normal.
I am using HP-UX.
Has anyone come across this problem?
Thanks and Regards,
Pradeep
Re: Restart with Multiple Listen directive crashes httpd
Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Thu, Mar 23, 2006 at 08:18:15PM +0530, pradeep kumar wrote:
> Thanks for the quick response. So does that mean I have to live with this as
> long as I use 2.0. Is there some way I can get this into 2.0.
Most of the relevant code would not be backportable as the listen
semantics were changed early-on in 2.2's development history. The same
fundamental approach would work - adding a ap_close_listeners() call and
calling it in the right place from each MPM, but there is no ready made
code to port, no.
--
Colm MacCárthaigh Public Key: colm+pgp@stdlib.net
Re: Restart with Multiple Listen directive crashes httpd
Posted by pradeep kumar <pr...@gmail.com>.
Hi,
Thanks for the quick response. So does that mean I have to live with this as
long as I use 2.0. Is there some way I can get this into 2.0.
Thanks and Regards,
Pradeep
On 3/23/06, Colm MacCarthaigh <co...@stdlib.net> wrote:
>
> On Thu, Mar 23, 2006 at 07:53:31PM +0530, pradeep kumar wrote:
> > Has anyone come across this problem?
>
> Yes, Apache 2.0 doesn't have any way to remove listeners on a restart
> like that, you need to use Apache 2.2 which will do a close listeners as
> required upon restarts.
>
> Hope that helps!
>
> --
> Colm MacCárthaigh Public Key: colm+pgp@stdlib.net
>
Re: Restart with Multiple Listen directive crashes httpd
Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Thu, Mar 23, 2006 at 07:53:31PM +0530, pradeep kumar wrote:
> Has anyone come across this problem?
Yes, Apache 2.0 doesn't have any way to remove listeners on a restart
like that, you need to use Apache 2.2 which will do a close listeners as
required upon restarts.
Hope that helps!
--
Colm MacCárthaigh Public Key: colm+pgp@stdlib.net