The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

track runaway script?

Discussion in 'General Discussion' started by Secret Agent, Jul 15, 2005.

  1. Secret Agent

    Secret Agent Guest

    What's the best way to track a runaway script using a service under nobody or httpd or php for example?

    TOP shows the load massively coming from httpd but how could I track the actual script causing this?
     
  2. drupal

    drupal Active Member

    Joined:
    Jun 23, 2005
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Not here, but there.
    use strace on the process and look at the thread output it can tell you valuable information.
     
  3. Secret Agent

    Secret Agent Guest

    Can you please give an example?

    strace pidnumber

    Would that be it?

    Thank you
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    man strace

    That expains how to use it.
     
Loading...

Share This Page