Linux系统故障排查
CPU:
mpstat -P ALL 1
CPU\MEM\NET\DISK
sar -u 1
sar -r 1
sar -n DEV 1
sar -n SOCK 1
iostat -x 1
CPU\MEM\DISK
pidstat -u 1 -p 3201
pidstat -r 1 -p 3201
pidstat -d 1 -p 3201
NET:
netstat -a | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
ss -t -a
tcpdump -i eth0 host 10.9.1.3 and port 8080
tcpflow -cp host 10.9.1.3
HARD:
dmesg -T |grep -i error