ssh to know the load

Discussion in 'Site & Server Administration' started by rahuldas14, Feb 18, 2010.

  1. #1
    Is there any ssh command to know the cpu usage of a particual user at a single instant.
    Or to know the user who has the highest cpu usage at that instant.
     
    rahuldas14, Feb 18, 2010 IP
  2. alan_smithee

    alan_smithee Active Member

    Messages:
    873
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #2
    alan_smithee, Feb 18, 2010 IP
  3. DepravedShadow

    DepravedShadow Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    or you could just use the top command which is in there by default
     
    DepravedShadow, Feb 18, 2010 IP
  4. Hostwaresupport

    Hostwaresupport Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You need to run 'top' command after that just hit shift+m, it will sort output by memory.
    Orelse, simply you can run 'w' command to see load on the server.
     
    Hostwaresupport, Feb 18, 2010 IP
  5. jakd

    jakd Peon

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try

    ps -aux | grep 'username'

    just replace the word username with the username you're looking for, and keep the quote marks

    edit: the higher user with cpu usage would show if you use the top command, it'll show you the top processes using the cpu time, or try shift+m and it'll show you the top users of server memory.
     
    jakd, Feb 19, 2010 IP