Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Need help tracking a process that's eating CPU

Discussion in 'General Discussion' started by nothsa, Dec 13, 2004.

  1. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    I'm not exactly sure what to make of this process that's eating all available CPU, so I'm hoping someone can shed some light on this:

    According to 'top', the process is listed as:
    27809 nobody 25 0 3632 2268 1916 R 81.9 0.4 169:23 0 perl

    When I press "c" to show the command line, the process shows as:
    27809 nobody 25 0 3632 2268 1916 R 84.1 0.4 174:13 0 [httpd]

    As far as I can tell, this is a perl process that's being run by apache, but I have no idea beyond that. Can anyone shed some light on this, or let me know what I can do to track down the offending process/code/user?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You should be able to get more information with:

    ps axfwwwwwl
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,777
    Likes Received:
    120
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    Try doing a:

    cat /proc/27809/environ

    That may give you some information
     
  4. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    - Unfortunately cat /proc/27809/environ produced nothing

    - ps axfwwwwwl produced the following about the process:
    Code:
    F   UID   PID  PPID PRI  NI   VSZ  RSS WCHAN  STAT TTY        TIME COMMAND
    1    99 27809     1  25   0  5712 2292 -      R    ?        240:22 [httpd]
    This doesn't really tell me anything new. Does it explain anything else to you guys? Is there anything else that I can try?
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Try cat /proc/27809/cmdline and ls -l /proc/27809/cwd (second tells you the working directory).

    Then try lsof -p 27809 which will tell you the script it is running, and any other files it has open.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice