Any util to show which PHP script is creating extreme load?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rowan
    Too lazy to set a custom title
    • Mar 2002
    • 17393

    #1

    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
    The Dirty Frenchman
    • Nov 2005
    • 8904

    #2
    Nope, not without using zend platform.
    Last edited by dissipate; 04-01-2007, 04:43 AM.

    Comment

    • extreme
      Confirmed User
      • Oct 2002
      • 2120

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

      Comment

      • rowan
        Too lazy to set a custom title
        • Mar 2002
        • 17393

        #4
        Originally posted by extreme
        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.

        Comment

        Working...