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.

Perl High CPU

Discussion in 'General Discussion' started by netbrink, Mar 14, 2006.

  1. netbrink

    netbrink Registered

    Joined:
    Dec 13, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    My server is lagging really bad. Can someone direct me on how to determine what account could be the reason. Also how i can manually shut down these hanging processes.

    Thanks,
    Brian


    root@host [~]# top
    top - 14:33:32 up 1 day, 19:00, 1 user, load average: 66.20, 56.47, 47.26
    Tasks: 454 total, 69 running, 378 sleeping, 1 stopped, 6 zombie
    Cpu(s): 30.5% us, 16.1% sy, 0.0% ni, 0.0% id, 0.0% wa, 5.9% hi, 47.5% si
    Mem: 1033756k total, 1023680k used, 10076k free, 308748k buffers
    Swap: 2104504k total, 160k used, 2104344k free, 207192k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    28415 nobody 16 0 5992 1764 1224 S 30.3 0.2 0:16.46 perl
    28483 nobody 16 0 5628 1768 1224 S 29.7 0.2 0:16.66 perl
    28507 nobody 16 0 6232 1764 1224 S 29.7 0.2 0:16.76 perl
    28590 nobody 19 0 6868 1768 1224 R 1.3 0.2 0:00.25 perl
    21756 nobody 18 0 6544 1768 1228 R 1.0 0.2 11:23.89 perl
    21840 nobody 18 0 5760 1764 1224 R 1.0 0.2 8:01.14 perl
     
  2. rapidfire911

    rapidfire911 Active Member

    Joined:
    Jul 5, 2005
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Try using the command
    ps -aux | awk {'print$1'} | sort -n | uniq -c
    to check hwo many processes each username is running.
    Also mysqladmin processlist to check which db are querying a lot.

    Randy
    Chihost.com technician
     
  3. agressor

    agressor Active Member

    Joined:
    May 15, 2005
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    hi my friend. U must check better ur serv. check ur tmp folders and /dev/shm i think u haved some malicous script's (bnc, flood, etc) install firewall, and secure apache, and php functions. search post for beginer secure guides.


    reggards
    francisco
     
Loading...

Share This Page