Memory & CPU usage statistics via Centos console commands?

Discussion in 'Site & Server Administration' started by pdoods, Mar 18, 2010.

  1. #1
    Hi,

    I'm running my website on a VPS (OS is Centos 5) and so far I've been checking CPU, memory & bandwidth usage by using Kloxo Lxadmin's graphical interface.

    Now I would like see some statistics as in numbers via Centos console commands..

    What kind of programs/commands there are in Centos for checking such statistics?

    thanks in advance!
     
    pdoods, Mar 18, 2010 IP
  2. WoW Blood

    WoW Blood Well-Known Member

    Messages:
    164
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Use this command in your SSH Terminal
    top
    Code (markup):
     
    WoW Blood, Mar 18, 2010 IP
  3. pdoods

    pdoods Peon

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just what I needed, thanks!
     
    pdoods, Mar 18, 2010 IP
  4. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #4
    You can also use 'vmstat 1', 'top -cd1', 'htop', and 'free'
     
    zacharooni, Mar 18, 2010 IP
  5. brainwater

    brainwater Peon

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    free -m

    df -Th
     
    brainwater, Apr 4, 2010 IP
  6. GNetCoder

    GNetCoder Peon

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I second the vote for:

    htop

    Mainly because it looks cool. Ha! :p
     
    GNetCoder, Apr 4, 2010 IP
  7. ChrisMiller

    ChrisMiller Prominent Member

    Messages:
    1,934
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    315
    #7
    I would recommend the command
    there are also some free server status scripts out there which you can install and it visually displays your servers Cpu/Ram/HD usage in your browser. I would recommend just searching 'server status scripts' in google and find one you like.
     
    ChrisMiller, Apr 5, 2010 IP
  8. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Be sure to check out htop too. You can find an rpm for it. Shows very detailed stats
     
    SecureCP, Apr 6, 2010 IP
  9. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #9
    htop is the best for me :D
     
    aroel, Apr 8, 2010 IP
  10. RosenCruz

    RosenCruz Active Member

    Messages:
    489
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #10
    nice info.I needed these too.Thanks !
     
    RosenCruz, Apr 9, 2010 IP
  11. sysadmin

    sysadmin Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    install "sysstat "

    # yum install sysstat
    And start that serive,

    Then use commands " mpstat 3 " , iostat , sar -q
     
    sysadmin, Apr 15, 2010 IP