What to do if Linux cannot kill

藏色散人
Release: 2021-11-22 11:43:49
Original
4909 people have browsed it

Solution to the problem that Linux cannot kill: 1. Use the top command to check the number of zombie processes; 2. Forcefully close the database and restart the system.

What to do if Linux cannot kill

#The operating environment of this article: linux5.9.8 system, Dell G3 computer.

linux What should I do if I cannot kill?

The reason why kill -9 pid cannot be forced to kill the process under Linux

When I installed the cluster today, I found that a process always existed, kill -9 pid also If you can't get rid of it, look for the reason.

kill -9 sends the SIGKILL signal to terminate it, but the following two situations do not work:

a. The process is in the "Zombie" state (use the ps command to return the defunct process). At this point, the process has released all resources, but has not yet been confirmed by its parent process. The "zombie" process will not disappear until the next reboot, but its existence will not affect system performance.

b. The process is in "kernel mode" and waiting for unavailable 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. The process will be in two states in AIX, namely user mode and kernel mode. Only processes in user mode can be terminated with the "kill" command.

Use the top command to check and find that the number of zombie processes is 0. It seems that these three processes are not zombie processes. It should be the situation in b, that is, there is insufficient disk space when these processes enter the core state and wait for disk resources. Failure, at this time I forcibly closed the database, so these processes have been in the core state and cannot be killed. It seems that they can only be restarted.

Recommended learning: "linux video tutorial"

The above is the detailed content of What to do if Linux cannot kill. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template