The most commonly used performance check commands in Linux
1、查看负载
uptime
10:37:55 up 1 day, 13:13, 1 user, load average: 0.00, 0.00, 0.00
在过去1分钟、5分钟、15分钟内平均进程数量
2、查看用户
w
15:43:31 up 4 days, 16:26, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 192.168.1.2 14:50 0.00s 0.08s 0.00s w
3、查看进程
top
htop
4、性能列表
vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 64680 25716 339924 0 0 8 23 33 97 1 0 99 0 0
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here