UnixServerAdmin

Server Administration & Management

zombie_process.sh

###########################################################
## zombie_process.sh ##
###########################################################
#!/bin/bash
x=0;
for x in `ps -ef | grep defunct | awk ‘{print $3}’` ; do
echo $x
kill -9 $x
done

November 20, 2013 Posted by | Security, Shell Script, Tips & Tricks, Unix/Linux | , , , , , | Leave a comment

Zombie

Q: – What is a zombie?

Zombie is a process state when the child dies before the parent process. In this case the structural information of the process is still in the process table.

Zombie : The process is dead but have not been removed from the process table.

August 22, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | Leave a comment