监控
# 监控
# top
top,显示cpu和内存,进程使用情况
- load average, 负载
- %cpu, cpu占用率
- MiB Mem, 内存使用情况
# free
free -m -s 2,显示内存情况
# vmstat
vmstat -S m 2,用于虚拟内存统计
# iostat
iostat x,用于磁盘读写
# netstat
netstat,显示网络状态
netstat -a,显示全部 socket
netstat -ntlp,显示使用tcp的socket
# nmon
https://www.cnblogs.com/imyalost/p/9689213.html (opens new window)
nmon -s 1 -c 60 -f -m ./, -s每秒采集,-c采集次数, -f生成文件,