1. top 로 프로세스 현황을 보면 좀비 프로세스가 있는 경우가 있다
두번째 줄 마지막에 2zombie
[root@secure ~]# top -d 1
top – 09:36:49 up 240 days, 22:16, 2 users, load average: 0.10, 0.15, 0.18
Tasks: 366 total, 2 running, 362 sleeping, 0 stopped, 2 zombie
Cpu(s): 1.6%us, 3.2%sy, 0.0%ni, 95.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16399032k total, 15599628k used, 799404k free, 547544k buffers
Swap: 33551744k total, 256k used, 33551488k free, 10742532k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5881 root 18 0 2088 824 544 R 5.9 0.0 11667:34 whatap_agentd
10621 root 15 0 123m 5588 3944 S 2.0 0.0 38:41.78 Assistd
19735 root 15 0 12892 1320 824 R 1.0 0.0 0:00.34 top
1 root 15 0 10368 680 572 S 0.0 0.0 2:19.91 init
2 root RT -5 0 0 0 S 0.0 0.0 4:24.54 migration/0
2. 좀비 찾기
[root@secure ~]# ps -ef|grep defunct|grep -v grep
root 13328 13291 0 Jun26 ? 00:00:00 [xinitrc] <defunct>
root 20356 20324 0 Mar23 ? 00:00:00 [Xsession] <defunct>
좀비 수 확인하기
[root@secure ~]# top -b -n 1 | grep zombie
Tasks: 332 total, 1 running, 331 sleeping, 0 stopped, 0 zombie
[root@secure ~]#
[root@secure ~]#
[root@secure ~]# ps -ef | grep defunct | grep -v grep | wc -l
0
[root@secure ~]#