Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of unable to kill in linux

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the solutions that can not be kill in linux. It is very detailed and has certain reference value. Friends who are interested must finish reading it.

The solution that linux cannot kill: 1, check the number of processes that found zombie through the top command; 2, force the database to be closed and restart the system.

This article operating environment: linux5.9.8 system, Dell G3 computer.

Reason why kill-9 pid forcibly cannot kill process under linux

Today, when I installed the cluster, I found that a process existed all the time, and the kill-9 pid could not be killed, so I found out why.

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

A. The process is in the "Zombie" state (the process that returns defunct using the ps command). At this point, the process has released all resources, but has not been confirmed by its parent process. The "zombie" process will not disappear until the next restart, but its existence will not affect system performance.

B. the process is in a "kernel mode" (nuclear mentality) and is waiting for unavailable resources. Processes in a nuclear mindset ignore all signal processing, so processes that have been in a nuclear mindset can only be achieved by rebooting the system. The process will be in two states in AIX, namely, user mode and kernel state. Only processes in user mode can be terminated with the "kill" command.

Using the top command to check and find that the number of zombie processes is 0. It seems that these three processes do not belong to zombie processes, but should be b in this case, that is, when these processes enter the core mentality and wait for disk resources, there is a failure of insufficient disk space. At this time, I forcibly shut down the database, so these processes have been in a nuclear mentality that can not be killed, so it seems that they can only be restarted.

The above is all the contents of this article entitled "the solution to kill in linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report