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!

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:
    166
    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:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Tagor

    Tagor Well-Known Member

    Joined:
    Mar 6, 2004
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    166
    Many many thanks. I will store this usefull information! :)
     
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