How can i know which account is usinig a lot of cpu or ram in my cpanel server?

Discussion in 'Site & Server Administration' started by ASTRAPI, Jun 17, 2010.

  1. #1
    Hello

    How can i check on a cpanel server which account is using the most cpu and the most ram?

    As it seems that is overloading a lot my server...

    Thank you
     
    ASTRAPI, Jun 17, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    There are few different ways to keep track of resource usage.

    1) WHM >> Apache Status = It will show you each connection with the domain name and the CPU and RAM usage of it.
    2) ps -auxf == this command is useful to checkout the resource usage of each process running on the server.
    3) top = is another good utility.
     
    madaboutlinux, Jun 18, 2010 IP
  3. bvsonline

    bvsonline Peon

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    Use the "top command". Usage format is given below.

    ----
    top -c
    press ctrl+p - sorts the process list according to cpu usage
    ctrl+m - sorts the process list according to memory usage
    ----
     
    bvsonline, Jun 18, 2010 IP
  4. inoxhost

    inoxhost Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It will show what user is taking most cpu. However, if suPHP is not installed on your server, you will not able to see username. It will show you just nobody user.
     
    inoxhost, Jun 18, 2010 IP
  5. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ok thank you :)
     
    ASTRAPI, Jun 18, 2010 IP
  6. okmyhosting

    okmyhosting Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I ofter use Main >> Server Status >> Daily Process Log
    system health can only find the current status,but can not find yesterday or earlier.
    I always find mysql status is in red,and you can check Main >> SQL Services >> Show MySQL Processes find which mysql use the most.
     
    okmyhosting, Jun 19, 2010 IP