僵尸进程导致cpu 过高
查找该进程
[root@app_test ~]#ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]'
Zs 8738 8751 [grabOrder_resta] <defunct>
[root@app_test ~]#kill -9 8738
[root@app_test ~]#ps -ef | grep grabOrder_resta
root 17882 17881 0 10:07 ? 00:00:00 [grabOrder_resta] <defunct>
root 18103 14036 0 10:12 pts/1 00:00:00 grep --color=auto grabOrder_resta
程序的父进程ppid , 17882 是子进程,17882 是父进程 ,我们要杀死父进程才能关掉该程序,只杀死子进程没用
[root@app_test ~]#cat /proc/17882/s
sched schedstat sessionid setgroups smaps stack stat statm status syscall
[root@app_test ~]#cat /proc/17882/status
Name: grabOrder_resta
State: Z (zombie)
Tgid: 17882
Ngid: 0
Pid: 17882
PPid: 17881