GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any util to show which PHP script is creating extreme load? (https://gfy.com/showthread.php?t=720084)

rowan 04-01-2007 05:30 AM

Any util to show which PHP script is creating extreme load?
 
Something is fecked on my server but I can't figure out what - I can see through 'top' that a few httpd processes are going mad with CPU usage, but I cannot track down the actual script that is causing it. The server runs several sites.

Is there something that can show me which script the apache version of php is executing at that time? 'ps' doesn't work since that shows the apache process, not the script name.

dissipate 04-01-2007 05:42 AM

Nope, not without using zend platform.

extreme 04-01-2007 05:52 AM

Just add some logging of the execution time of the scripts.

rowan 04-01-2007 05:55 AM

Quote:

Originally Posted by extreme (Post 12177648)
Just add some logging of the execution time of the scripts.

Yep, I already have that in my Apache logs... the problem is that I wasn't looking at that particular log! I used 'locate' to find the logs to parse but that didn't include a site I recently moved. I discovered this by accident when I started manually working through each site's logs.

I have the culprit under control now...... it's a tiny site but a cheater was sending 3-4 loads per minute which in this case was enough to cause some serious problems.


All times are GMT -7. The time now is 12:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc