These processes are dead, but no system resources are released, including memory and some system tables, which can cause system problems if there are many such processes. The process state that is seen with Ps-el is a zombie process if it is Z.
Ps-ef|grep Defunc can find out the zombie process.
Some zombie processes can not be killed with kill-9, and consumes a lot of system resources can not be released, if the system sends a message in shutdown: Some process wouldn ' t die. This means that some processes cannot be killed by reboot kill–9, which is probably the zombie process.
You can use PS's –l option to get more detailed process information.
F (Flag): A series of numbers and that represents the current state of the process. The meanings of these numbers are:
00: If displayed separately, indicates that the process has been terminated.
01: The process is part of the core process and resides in the system main memory. such as: Sched, Vhand, Bdflush and so on.
02:parent is tracing process.
04:tracing Parent's signal have stopped the process; the parent is waiting (Ptrace (s)).
10: The process goes into hibernation when the priority level is less than or equal to 25 o'clock, and it cannot wake with a signal, for example, while waiting for an inode to be created
20: Process is loaded into main memory (primary memory)
40: The process is locked in main memory and cannot be replaced before the transaction is completed. E
S ( State of the process)
O: The process is running on the processor
S: Sleep state (sleeping)
R: Waiting to run (runable)
I: Idle State (idle)
Z: Zombie status (Zombie)
T: Tracking Status (traced)
B: The process is waiting for more memory pages
C (CPU usage): Estimated CPU Utilization
The Zombie (zombie) process can be cleared using the following methods:
1> kill–18 PPID (PPID is its parent process)
this signal tells the parent process that the child process is dead, and reclaim the resources assigned to him.
2> if not, see if you can terminate its parent process if it is not needed by the parent process. First look at its parent process and no other child processes, if any, you may need to kill other child processes, that is, the sibling process. The method is:
kill–15 PID1 PID2 (Pid1,pid2 is the other child process of the parent process of the zombie process).
then kill the parent process: kill–15 PPID
so the zombie process could be completely killed.
This article is from the "Savage Power" blog, please be sure to keep this source http://chenfei123.blog.51cto.com/1427669/1885140
The zombies in the process hurry to kill