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.

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:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should be able to get more information with:

    ps axfwwwwwl
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    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:
    6
    - 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:
    38
    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.
     
Loading...

Share This Page