Is there anu command or way to kill zombis?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Is there anu command or way to kill zombis?
# 1  
Old 05-11-2006
Is there anu command or way to kill zombis?

I have some zombie's in my env , i have no idea from where they created
but how can i kill them ?
How can i know what is the source of the zombie process?
# 2  
Old 05-11-2006
Here..

In UNIX every parent process is responsible for cleaning up after his child processes. As when process is done, its parent process removes it from the system properly and clean its data structure. Sometimes parent process is getting killed or terminated before his child process ends. In such case child process has to be terminated by INIT process. Unfortunately it not always does it clean or perfect.
Zombie processes aren't the real, because there's is no "process" in the execution queue and only some data structure still persist. If they are few just disregard them, as zombi is a normal phase (undesirable but normal) of process's lifetime. If there are many, the only real way to get rid of them is to reboot the system The command "kill", even with -9 wouldn't help as process had been eliminated already.
Get "UNIX Essentials and UNIX Core" DVD as it explains stuff like that.

Hope it helps.
# 3  
Old 05-12-2006
To clean up zombies, use the following procedure:
1. Run 'ps -ef|grep defun' to search for defunct processes
2. Check the parent process for the zombies
3. See if the parent can be killed. If it can be, kill it.
Once you kill the parent, then all its children (zombie) processes will be inherited by init. Init will immediately wait for all the pending children and that will be the end of the zombie processes.

Note that if you have several different parent processes that have zombie children, you have to kill all those processes.
# 4  
Old 05-21-2006
Hello and tnx for the fast reply
i have question , how can i find out who is the defunct parent process ?
say if i got :
mydir 28138 9186 0 1:51 <defunct>
after runing 'ps -ef|grep defun'

tnx
# 5  
Old 05-21-2006
in your case:

Quote:
mydir 28138 9186 0 1:51 <defunct>
9186 is the Parent PID(PPID), to display parent process and all its child processes you could do:
Quote:
ps -ef | grep 9186
replace 9186 with your PPID. Hope it helps!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Kill command

what is the difference between kill 5 and kill %5? the first one is to kill a process with PID 5 but what does the % mean in the second one? (3 Replies)
Discussion started by: chinababy
3 Replies

2. Shell Programming and Scripting

kill using the ps command

hello, can anyone help me with a script that checks the status of processes and "kills" the process that's hanging? I mean I'm aware of the commands but I'm confused on how to put them all together... thanks! :) (4 Replies)
Discussion started by: dude911
4 Replies

3. Shell Programming and Scripting

kill command

Good way to kill the process, if the process having it's child (3 Replies)
Discussion started by: pritish.sas
3 Replies

4. Solaris

Help with Kill Command

I am running Solaris 9. I have a problem with kill command. I'm sort of teaching myself so this might be a really stupid thing. I logged in as a normal user, lets say ABC, and then did "su" to root. After becoming root, I tried to kill the process started by ABC by saying kill -9 "pid of ABC" ... (3 Replies)
Discussion started by: the_red_dove
3 Replies

5. Shell Programming and Scripting

understanding the kill command

Hi Guys, I like to know if i have a process which triggers 10 different child processes. How to identify out of the 11 processes running which is the parent process and what are the child process? And if i kill the parent process will the child process be killed.. if not is there a way to... (2 Replies)
Discussion started by: mac4rfree
2 Replies

6. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

7. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

8. UNIX for Dummies Questions & Answers

Kill Command

Hi All, What is difference between kill & kill -9 command? Thanks & regards, Sonali (4 Replies)
Discussion started by: sonali
4 Replies

9. Programming

the kill command

is it possible to implement the kill command using C? (2 Replies)
Discussion started by: kelogs1347
2 Replies

10. UNIX for Dummies Questions & Answers

kill command

what is the kill command? (1 Reply)
Discussion started by: Rush
1 Replies
Login or Register to Ask a Question