||
示例:top -n 1 -b
示例:vmstat 1 10 #每1秒采集一次共采集10次
示例:pidstat -u 1 -p pid
示例:mpstat -P ALL 1 5
示例:sar -u
示例:dstat 2 10(每2秒采集一次共采集10次)
示例:top -n 1 -b
示例:pidstat -r
示例:free -mh
示例:sar -r 10 3(每10秒采样一次,连续采样3次)
示例:vmstat 2 1
示例:iostat -d -x -k 1 10
示例:iotop
示例: pidstat -d
示例:sar -d
示例:vmstat 2 1
示例:netstat -nltup
示例:iftop -i em2
示例:ss -aA tcp
示例:sar -n EDEV 1 5
示例:tcpdump -i em1 host 192.168.1.1 and port 80
示例:tcpflow -i em1 port 80
示例:nload -t 200 -i 1024 -o 128 -U M
假如某个程序频繁的进行计算、逻辑判断等操作,那么此类程序主要依赖于CPU的处理速度,故称之为"计算密集型程序"。
假如某个程序频繁的从磁盘中读取写入文件,那么这种类型的操作主要依赖于磁盘的读取速度,也就是输入输出(input/output)简写为I/O。此类I/O负载的程序,称为I/O密集型程序。
示例:top
示例:uptime
示例:sar -q 1 20
Enjoy GreatSQL :)
合作电话:010-64087828
社区邮箱:greatsql@greatdb.com