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.

High load --> perl

Discussion in 'General Discussion' started by Tagor, Dec 14, 2004.

  1. Tagor

    Tagor Well-Known Member

    Joined:
    Mar 6, 2004
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Perl has a very high load:

    27280 nobody 25 0 2312 1064 444 R 41.9 0.2 273:59 0 perl
    25653 nobody 25 0 2312 1332 444 R 41.3 0.2 273:58 0 perl

    I killed both processes. But is there a way to find out which script causes the high load?
     
  2. 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 lsof ...

    When you get the processes running again, run 'lsof -p PID' where PID is the process ID, and that will tell you where the perl script is and you can go from there. Also 'ls -ld /proc/PID/cwd' will tell you the directory it is running in, which may not be the same directory the script is in, but it is likely to be unless they've changed directory. The lsof method is much easier though, I'd use that unless you don't have it on your box.
     
  3. Tagor

    Tagor Well-Known Member

    Joined:
    Mar 6, 2004
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Many many thanks. I will store this usefull information! :)
     
Loading...

Share This Page