Ubuntu finds and kills zombie Processes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.