Date: Sun, 3 Oct 1999 11:23:34 -0700 (PDT) From: Alfred Perlstein <bright@wintelcom.net> To: David Gilbert <dgilbert@velocet.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: runaway apache processes? Message-ID: <Pine.BSF.4.05.9910031121580.6368-100000@fw.wintelcom.net> In-Reply-To: <14327.37184.259874.807747@trooper.velocet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Oct 1999, David Gilbert wrote: > >>>>> "Alfred" == Alfred Perlstein <bright@wintelcom.net> writes: > > Alfred> On Sun, 3 Oct 1999, David Gilbert wrote: > > >> I've been having real problems with runaway apache processes with > >> more recent versions of FreeBSD. Apache is configured (by hand) > >> with ssl, php, httpdapy (a python module) and a few others. > >> > >> When this happens, some (sometimes many) httpd processes chew up > >> 100% CPU and need a kill -9 to die. > >> > >> Has anyone else be having this problem? > > Alfred> I'm not a php nor python programmer, however I've seen this > Alfred> happen when there is an accidental infinite loop in a php > Alfred> script, perhaps the php or python engines have a way of > Alfred> aborting a script after X amount of time has gone by? > > But we've verified that this will happen even when the server is > serving a non-php page or a graphic. It appears (after much pulling > of hair) to be due to the pthreads required by the python module --- > that compiling apache with pthreads makes it very wonky indeed. Then what you need to do is compile apache with debug 'cc -g' and force it to dump core with 'gcore' and give us a traceback with gdb. -Alfred Perlstein - [bright@rush.net|alfred@freebsd.org] Wintelcom systems administrator and programmer - http://www.wintelcom.net/ [bright@wintelcom.net] 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?Pine.BSF.4.05.9910031121580.6368-100000>