Preface recently, due to studying java, many labels will be opened in chrome, and some extensions will be used to remind you of some emails and other things. The results will often get inexplicably stuck to my desktop program, the reason is that the Zombie process is generated. I will not talk about the cause of Zombie here. I just want to briefly talk about how to find the Zombie process in Ubuntu. First, when the desktop program is stuck, you can try to access other tty terminals. Switch Mode: ctrl + alt + [1, 2, 3, 4, 5, 6, 7], 7 is the second place for desktop terminals, you can run the top command to check whether there are any Zombie processes. You can see the number of zombie processes, num Zombie, and num greater than 0, which indicates that the system has a zombie process, use the ps command to find the Zombie process ps-A-ostat, ppid, pid, cmd | grep-e '^ [zZ]'. Example:
For specific parameter explanations, you can use man to learn to kill the Zombie process and kill-9 Zombiepid. The reason is: Zombie indicates that the process has exited and you want to clear it, you need to clear the parent process or wait for a long time before the kernel clears it, however, Ubuntu12.04 desktop display manager is LightDM, so kill-HUP can at least be used to log out. You do not need to restart it.
Zombie processes in Linux
Processing of zombie processes in Linux
Linux botnets run faster than Windows
Getting started with Linux: Killing zombie Processes
Detailed analysis of Linux botnets and common ps usage