Kill processes that cannot be killed

Source: Internet
Author: User

In two cases, kill is not allowed:

First, the process has become a zombie process. When its parent process recycles it or kill its parent process, it will be invisible to the PS output;

Second, the process is in the kernel state, and the Linux process runs in the kernel andUserWhen the process enters the Kernel Status, all signals, including sigkil, are blocked. Therefore, kill-9 becomes invalid at this time.

Check whether the process is dead (use the "Ps" command to return the "defunct" process)


If you do not kill it, it is normal that it does not occupy system resources.


In addition, the process is in the "kernel mode" (core State) and is waiting for unattainable resources. Processes in the core state ignore all signal processing, so these processes that have been in the core state can only be implemented by restarting the system. Processes in Unix/Linux are in two states: user and core. Only processes in the user State can be terminated with the "kill" command.

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.