Step

  
of Ubuntu killing zombie process

If a process ends and the parent process does not wait, it will become a zombie process, also called Zombie process, which will affect the operation of the system. In Ubuntu system, how to find and kill Dead zombie process? Let's take a look at it with Xiaobian.

Finding Zombie Processes

First, when the desktop program is stuck, you can try to enter other tty terminals. Switching mode: ctrl + alt + [1,2,3,4,5,6,7], 7 is the desktop terminal

Secondly, you can use the top command to check whether there is a Zombie process currently
< Br>

From the above figure, you can see the number of zombie processes, num zombie, num is greater than 0, it means the system exists zombie process

Finally, use the ps command to find the Zombie process

ps - A -ostat, ppid, pid, cmd |  grep -e & lsquo; ^ [zZ] & rsquo;

Example:

specific parameters can be explained by man to their own learning

Kill Zombie process

Direct kill -9 Zombiepid is useless. The reason is: Zombie indicates that the process has exited. If you want to clean such a process, you need to clear its parent process or wait a long time for the kernel to clear it

Kill -HUP ppid

The above is the introduction of Ubuntu's method of killing zombies. The method described in this article can remove the zombie process, and it will not be completely cleared in time, nor will it affect the operation of the system.

Copyright © Windows knowledge All Rights Reserved