httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AussieJohn <aussiej...@gmail.com>
Subject Re: FW: [users@httpd] Apache dies unexpectedly
Date Mon, 27 Jun 2005 11:28:51 GMT
On 6/27/05, Boyle Owen <Owen.Boyle@swx.com> wrote:
> > -----Original Message-----
> > From: Boyle Owen
> > Sent: Montag, 27. Juni 2005 13:14
> > To: 'AussieJohn'
> > Subject: RE: [users@httpd] Apache dies unexpectedly
> >
> >
> 
> Pls keep on list...
> 
> >
> >
> > > -----Original Message-----
> > > From: AussieJohn [mailto:aussiejohn@gmail.com]
> > > Sent: Montag, 27. Juni 2005 12:53
> > > To: users@httpd.apache.org
> > > Cc: Boyle Owen
> > > Subject: Re: [users@httpd] Apache dies unexpectedly
> > >
> > >
> > > <snip>
> > >
> > > > > Problem:
> > > > >   Apache dies unexpected and out of the blue. e.g. I came
> > > to work this
> > > > > (monday) morning,
> > > > > and found my webserver died about half an hour before I
> > > even got into
> > > > > the office.
> > > > > Every so often (seemingly random times...) therewill be
> > > entries in the
> > > > > error_log saying:
> > > > > [notice] caught SIGTERM, shutting down
> > > > > [notice] Apache/2.0.54 (Unix) PHP/4.3.11 configured --
> > > resuming normal
> > > > > operations
> > > >
> > > > SIGTERM is the standard unix signal to kill a process. This
> > > is exactly the log message you get if you type "apachectl
> > > stop" or "kill <PID>". So something must be doing this...
> > > >
> > > > You say the times are random - are you certain? Check in
> > > the crontab for root to see if there is a forgotten
> > > instruction to stop apache (check all the other crontabs if
> > > apache doesn't start as root).
> > > >
> > >
> > > ---------------
> > > Yes times seem to be random, sometimes the server will die within
> > > several minutes from being started, sometimes will be
> > > anything between
> > > 10 minutes and 40, 50 minutes.
> > > -----------
> > >
> > >
> > >
> > >
> > > > I notice below that the SIGTERM is followed immediately by
> > > a start and then by another SIGTERM - could there be a rogue
> > > daemon running - maybe to rotate logs or something? Check it out.
> > > >
> > > -------------
> > >
> > > I have no reasonable explanation for this as of yet.
> > > When I got to work on monday morning, I looked through the
> > log file,
> > > and there were a *lot* of
> > >
> > > [notice] caught SIGTERM, shutting down
> > > [notice] Apache/2.0.54 (Unix) PHP/4.3.11 configured --
> > resuming normal
> > >
> > > lines in there.
> >
> > If you get a lot of stop start sequences in the logs and it
> > doesn't seem to be regular, it doesn't look like cron. So
> > some job is being executed randomly which is restarting
> > apache. Could it be a daemon:
> >
> > - use ps to see what's running and check out the source code
> > of anything that looks suspicious
> > - grep for apache/httpd in /etc/init.d (should only be the
> > boot and kill scripts)
> >
-----
used ps and nothing seemingly suspicious seems to be running.
from memory there is one other script in /etc/init.d called 'httpd.server'
(not 100% sure on the name), i do know there are two scripts that 
start with 'httpd'.
-----



> > Could it be a CGI program? Does apache start as root?
> >
-----
it could indeed be a cgi (PHP) program - allthough quite often I am not 
using the webserver, and will still die, hence suggesting to me that it is 
not a CGI script causing this.

also what might be interesting to note, is that I did to a reboot of my system, 
as I figured this may clear out zombified processes and other nasty
things that may have ended up in memory/in apache thread.

Alas, to no avail, approximately 10/15 mins after reboot the server died again.

-----

> > Rgds,
> > Owen Boyle
> > Disclaimer: Any disclaimer attached to this message may be ignored.
> >
> >
> > > This is extremely odd, as the webserver
> > > ofcourse doesn't
> > > get used on the weekend as it is my workstation (I'm a web
> > developer).
> > > the only thing I could think of was a misbehaving profiler
> > or module.
> > > The only things I added before the server started dying was a
> > > virtualhost
> > > and mod_auth.
> > > I have tested with disabling the vhost, mod_auth and
> > > Xdebug (PHP profiler/debugger).
> > >
> > > None of these seem to give me a solution. So I am still stuck with a
> > > sporadically
> > > dying webserver.
> > > When I get back to work in the morning I will however make
> > sure that
> > > there are no crontabs set. I am 99.9 % sure there aren;t as I am the
> > > only one that
> > > uses my machine.
> > >
> > > Would their be any other way to find out what exactly happens
> > > that would kill
> > > the server ?
> > > -------------
> > > > Rgds,
> > > > Owen Boyle
> > > > Disclaimer: Any disclaimer attached to this message may
> > be ignored.
> > > >
> > > <snip>
> > >
> > >
> > > --
> > > "If you really want something in this life, you have to work for it.
> > > Now, quiet! They're about to announce the lottery numbers..."
> > > - Homer Simpson
> > >
> >
> 
> 
> This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


-- 
"If you really want something in this life, you have to work for it.
Now, quiet! They're about to announce the lottery numbers..."
- Homer Simpson

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message