From owner-freebsd-questions Sun Oct 3 11: 5:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 13F2914DC7 for ; Sun, 3 Oct 1999 11:05:10 -0700 (PDT) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id LAA04277; Sun, 3 Oct 1999 11:23:34 -0700 (PDT) Date: Sun, 3 Oct 1999 11:23:34 -0700 (PDT) From: Alfred Perlstein To: David Gilbert Cc: freebsd-questions@FreeBSD.ORG Subject: Re: runaway apache processes? In-Reply-To: <14327.37184.259874.807747@trooper.velocet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 3 Oct 1999, David Gilbert wrote: > >>>>> "Alfred" == Alfred Perlstein 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