Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2001 11:17:11 +0100
From:      Christoph Sold <so@server.i-clue.de>
To:        dan@langille.org
Cc:        questions@freebsd.org
Subject:   Re: Apache processes grind system to a halt
Message-ID:  <3ABB22A7.41E1D708@i-clue.de>
References:  <200103222032.f2MKWdj93395@ns1.unixathome.org>

next in thread | previous in thread | raw e-mail | index | archive | help


Dan Langille schrieb:
> 
> About 2 or 3 times a day, Apache gets its knickers in a twist. Sometimes it takes
> the box down with it.  If left unchecked, the load averages climb, swap is
> exhausted, and the system dies.  If I keep an eye on the box and kill -TERM the
> processes, the box is OK.  But that is not a solution.
> 
> I have no idea why Apache does this.  The web server is running Apache, php,
> mysql.  This may be a php script out of control, but if it is, I don't know how to
> find it.  The box is running 4.2-stable.  Apache, php, and mysql are recent
> versions (all upgraded yesterday in case that was the problem).
> 
> Is there a way to determine what a particular httpd process is doing?  At least
> then I could see what task was taking so much time.

If server-status and server-info modules are compiled in, you may get
some hints. Look at http://your.server.name/server-status rsp.
server-info. If you get nothing, enable them in your apache config file.

Server-status tells which child does what (i.e. idle, waiting for
response from cgi, delivering answer...) as well as the URL which caused
the action.

Server-info tells exactly which configuration is running, as well as
listing the options as apache has seen them during startup. Helps
debugging the config file.

HTH
-Christoph Sold

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABB22A7.41E1D708>