Best things you have to do, is to kill that annoying zombie process. All you can do is, notifying its parent process so that it can again try to read the status of the child process, which has now become a zombie process, and eventually, the dead process gets cleaned from the process table.
Use the following command to find out the parent process ID. for example:
Code: Select all
root@srv8 ~]# ps aux | egrep "Z|defunct"
Code: Select all
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 3696817 0.0 0.0 112812 976 pts/1 S+ 04:51 0:00 grep -E --color=auto Z|defunct
Code: Select all
ps aux | awk '$8 ~ /^[Zz]/'
A process in Linux can have one of the following states:
D = uninterruptible sleep
I = idle
R = running
S = sleeping
T = stopped by job control signal
t = stopped by debugger during trace
Z = zombie
you can’t kill zombie processes as they are already dead.
Code: Select all
[root@srv8 ~]# kill -9 3696817
-bash: kill: (3696817) - No such process
Code: Select all
[root@srv8 ~]# ps -o ppid=3696817
3696817
3696774
3696780
Then you can kill it...
Code: Select all
[root@srv8 ~]# kill -s SIGCHLD 3696774
[root@srv8 ~]# kill -s SIGCHLD 3696780
[root@srv8 ~]#
https://jsalfianmarketing.com/viewtopic.php?t=11