RE: [PHP] infinite looping httpd processes

From: Date: Mon, 31 Jul 2000 18:09:50 +0000
Subject: RE: [PHP] infinite looping httpd processes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9216@lists.php.net to get a copy of this message
I'd suggest to use strace. I found it (or truss under Solaris) many times very helpful. Attach strace to the looping httpd server process and see what it does. Maciek > -----Original Message----- > From: Adam Powell [mailto:adam@powlex.com] > Sent: Monday, July 31, 2000 9:10 AM > To: John Coggeshall; php-general@lists.php.net > Subject: Re: [PHP] infinite looping httpd processes > > > > No, sometimes if the loop is tight enough the time-out procedure > cant get a > word in edgeways... I have seen MANY scripts infinitely looping > even though > they have a time out limit of 30 seconds. > > Is there any way to capture a process, or log the script name or something > under linux? Something like gdb, but for currently running httpd > processes > is just what we need here. > > Thanks, > Adam > > ----- Original Message ----- > From: "John Coggeshall" <someone@internetaddress.com> > To: "Adam Powell" <adam@powlex.com>; <php-general@lists.php.net> > Sent: Sunday, July 30, 2000 5:41 AM > Subject: RE: [PHP] infinite looping httpd processes > > > > > > I don't see how PHP can be infinitely looping.... It has a max time that > it > > can "execute" a script that is admin-set. Check in your php.ini > file for a > > maximum execution time. > > > > John > > > > > > > > -----Original Message----- > > From: Adam Powell [mailto:adam@powlex.com] > > Sent: Sunday, July 30, 2000 7:57 PM > > To: php-general@lists.php.net > > Subject: [PHP] infinite looping httpd processes > > > > > > > > Hi there, we are running PHPv4.0.0 on Red hat linux 6.2, on normal Intel > > boxes... and we are finding some of our apache processes are infinite > > looping (due to some badly written PHP no doubt.). Anyway, > does anybody > > know of anyway that we can work out which script is being run to cause > this? > > > > Currently our only diagnostic tool is top, and this just tells > us as much > as > > httpd is infinite looping and the PID. We cant use apache logs to find > the > > script name as we have had to disable them, we get over 1,000 > pageviews on > > our site a second, and its over 50GB a day of crap!! > > > > Is there anyway to find out which script is causing this > problem? We have > > over 1,000 different scripts also, so its a needle in a haystack! > > > > Thanks in advance, > > Adam > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#9216) next »