查找僵尸进程

[root@centos211 ~]# top c
top - 15:30:09 up  6:36,  3 users,  load average: 0.08, 0.09, 1.86
Tasks: 229 total,   1 running, 208 sleeping,  18 stopped,   2 zombie
Cpu0  :  0.0%us,  0.0%sy,  0.0%ni, 99.7%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu1  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu2  :  0.3%us,  0.3%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu3  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu4  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu5  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu6  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu7  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3909552k total,  2487576k used,  1421976k free,     4572k buffers
Swap:  8191992k total,  5209916k used,  2982076k free,  1110620k cached


有两个僵尸进程

查看这两个进程的pid然后kill掉

[root@centos211 ~]# ps -A -o stat,ppid,pid,cmd|grep -e '^[Zz]'
Z     3859  3864 [cc1plus] <defunct>
Z     3860  3867 [cc1plus] <defunct>
[root@centos211 ~]# kill -9 3864 3867

不过大多数下无法杀死。。。

你可能感兴趣的:(僵尸进程,zombie)