查看TCP链接状态

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}' |

ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}' | xargs kill -9

查看假死进程

ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]'

还有两个工具

pstack

strace