top

    1. [root@riyimei ~]# top
    2. top - 21:41:14 up 11:17, 1 user, load average: 0.00, 0.01, 0.05
    3. Tasks: 152 total, 1 running, 151 sleeping, 0 stopped, 0 zombie
    4. %Cpu(s): 0.1 us, 0.0 sy, 0.0 ni, 99.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    5. KiB Mem : 4026228 total, 3166264 free, 605144 used, 254820 buff/cache
    6. KiB Swap: 8388604 total, 8388604 free, 0 used. 3192232 avail Mem
    7. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    8. 1091 mysql 20 0 2881024 475432 18144 S 1.0 11.8 5:55.10 mysqld
    9. 1668 root 20 0 157320 5916 4564 S 0.3 0.1 0:00.04 sshd
    10. 1 root 20 0 43552 3864 2584 S 0.0 0.1 0:01.40 systemd
    11. 2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd
    12. 4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
    13. 6 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0

    topas
    vmstat

    1. [root@riyimei ~]# vmstat -a 2 10
    2. procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
    3. r b swpd free inact active si so bi bo in cs us sy id wa st
    4. 1 0 0 3166996 184748 539336 0 0 1 1 47 90 0 0 100 0 0
    5. 0 0 0 3166872 184760 539388 0 0 0 0 193 367 0 0 100 0 0
    6. 0 0 0 3166872 184760 539388 0 0 0 1 195 368 0 0 100 0 0
    7. 0 0 0 3166872 184760 539388 0 0 0 0 183 355 0 0 100 0 0
    8. 0 0 0 3166872 184760 539388 0 0 0 1 185 359 0 0 100 0 0
    9. 0 0 0 3166872 184776 539388 0 0 0 0 182 347 0 0 100 0 0
    10. 0 0 0 3166872 184776 539392 0 0 0 0 188 359 0 0 100 0 0
    11. 0 0 0 3166872 184776 539392 0 0 0 0 183 354 0 0 100 0 0
    12. 0 0 0 3166872 184776 539392 0 0 0 0 186 360 0 0 100 0 0
    13. 0 0 0 3166872 184776 539392 0 0 0 0 191 362 0 0 100 0 0
    14. [root@riyimei ~]#

    iostat
    free
    lsps
    swapinfo
    mpstat
    sar
    nmon