1833709 Members
2597 Online
110063 Solutions
New Discussion

Zombie question

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

Zombie question

HI,
HPUX 11.00. RP2450.
Would someone please advise on method to trace origin of zombies? Have issued top cmd and see 1 zombie.
Thanks,
Maria.
7 REPLIES 7
Michael Tully
Honored Contributor
Solution

Re: Zombie question

Con O'Kelly
Honored Contributor

Re: Zombie question

Hi Maria

Try using
# ps -ef | grep defunct.

Look at the PPID (Parent Process ID), it might give you a clue as to what application the process is from, though often with zombie processes the PPID is 1.

You will probably have difficulty getting rid of this zombie process unless you re-boot. Sometimes its possible to get rid of them by killing the Parent Process but NOT if PPID is 1.

Cheers
Con
Peter Gillis
Super Advisor

Re: Zombie question

Thankyou, for your help. Have established where the zombie originated, and how i can now attempt removal of it.
Maria.
Umapathy S
Honored Contributor

Re: Zombie question

Maria,
Once processes go into the zombie/defunct state, it is hard to remove them. Many times you have to reboot the machine to clear them off. Check those applications which created zombie for correct programming practices.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Mark Grant
Honored Contributor

Re: Zombie question

Maria,

Please be aware that your zombie is not causing you any trouble. The only thing it is using up is one process slot and you probably have enough of them.

Having said this, if you have found the process that creates the zombie, you might try sending it a signal 15. This might persuade it to clean up after it.

Never preceed any demonstration with anything more predictive than "watch this"
Keith Bevan_1
Trusted Contributor

Re: Zombie question

Maria,

Following on from Mark's reply, if this signal 15 fails then you could try the harsh signal 9

Keith
You are either part of the solution or part of the problem
A. Clay Stephenson
Acclaimed Contributor

Re: Zombie question

NOTE: A zombie process is already dead; you can't kill it. You can send it signals (even kill -9's) till the cows come home and it will still be dead. The zombie does no harm and all processes go through the zombie state. The only real cure is a reboot and for the loss of one entry in the proc table it just ain't worth it.
If it ain't broke, I can fix that.