Alibaba cloud Q & A 2022-02-13 07:22:08 阅读数:302
top Command view , Show that 4 Thousands of zombie processes , So this is caused by that program , How to check
Hello! , Zombie processes occur because the parent process does not reclaim the resources of the child process , that , We need to get rid of them , We have to find their roots , That is, find the parent process , Then solve in the parent process . The general troubleshooting process is as follows ：
Find zombie processes ：ps -aux | grep Z
Find the parent of the zombie process ：ps -ef | grep Subprocesses pid
Kill the parent process ：kill -s 9 The parent process pid Be careful ： If it is an application process written by the user , To check the source code, locate the code segment that generated the zombie process .
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130722061606.html