How to find a zombie process and kill it, you can't kill it. To view the parent process and kill it

Source: Internet
Author: User

Find zombie processes with PS and grep commands

#ps-A-ostat,ppid,pid,cmd | Grep-e ' ^[zz] '

Command annotations:-A parameter Lists all processes-O custom output fields We set the Display field to stat (state), PPID (process parent ID), PID (process id), cmd (command) These four parameters because the process of the state Z or Z for the zombie process, So we use grep to grab the stat state for the ZZ process to run the result reference as follows Z 12334 12339/path/cmd at this point, we can use Kill-hup 12339来 kill this zombie process run, can run again ps-a-ostat,ppid,pi D,cmd | Grep-e ' ^[zz] ' to confirm that the zombie process has been killed if the kill child process is invalid, you can try to kill its parent process to resolve the problem, such as the above example parent process PID is 12334, then we run

#kill-hup 12334

To solve the problem.

You can typically find dynamic process tables with the top command

#top

Where Zombie is the zombie process

Transferred from: http://blog.csdn.net/21aspnet/article/details/6754445

How to find a zombie process and kill it, you can't kill it. To view the parent process and kill it

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.