Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Processes I cant kill 1

Status
Not open for further replies.

Genka

MIS
Jul 15, 2001
20
0
0
US
Does any one know how to kill a zombie process, when kill -9 does not work?
 
As far as I know the only way to kill such processes is to reboot the box.
 
So there is no other command besides kill ?....I was hoping not to reboot.
 
Elsewhere I think Mike Lacey has recommended the wait command - you might like to do a search of this forum for his advice on this. However, the bottom line is that these processes do nothing more than take up a slot in the process table and they shouldn't be impacting your system's performance that badly. As long as you can live with this, and there aren't positively hundreds of the things, you may as well wait 'till your next scheduled reboot to kill them. HTH.
 
yep - you can just leave them, unless they are filling up your process table. They're not really processes anymore, just an entry in your process table waiting for the thing that started them to call wait() and pick up their return code. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
before killing any processes, there might be child be processes, so kill it first before killing the parent, if not the the processes might hang and appear to be there. :)
 
check the PPID
and if it is possible kill this process
kill -9 <PPID>.
The defunct process will gone
 
That doesnt work, sorry, But problem was rectified by instaling patches.

Thank you
For all of the responses
 
pgl222

Sorry - I have to disagree with you there.

The PPID (Parent Process ID) of a Zombie process will be 1, which is part of the operating system, which will *NOT* react nicely to being sent a SIG_KILL with a kill -9 command - so please don't do this at home anyone. But yes <wry smile> as it will get rid of *all* processes (very quickly) on the box, any Zombies will disappear as well! Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Michael if I wanted to get rid of all the processes I could just reboot the box. Not something you want to do in a 24/7 operation.
 
yep <grin> and I guessed, from what you'd written earlier, that you wouldn't do such a thing - but lots of people will read this thread

No offence meant Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top