what is zombie , how to kill it ,


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers what is zombie , how to kill it ,
# 1  
Old 11-30-2010
what is zombie , how to kill it ,

Hello


I try to googled it , but I dint get sufficient answer Smilie ..
When I can see zombie running on server do they consume system resources or not ?
I have read that is not good to kill them with signal 9 cause it might cause more troubles .. why is kill -9 so harmfull?
thanks
# 2  
Old 11-30-2010
You cannot "kill" a zombie process. They are usually cleared up automatically by unix unless they are stuck talking to some I/O device in which case only a reboot will get rid of them.

I have assumed that you know the difference between a Zombie Process and an Orphan Process. Here is a detailed explanation of a Zombie Process:

Zombie process - Wikipedia, the free encyclopedia

As for "kill -9" it is rarely ever necessary to issue "kill -9" unless you are having trouble shutting down a sick computer. A "kill -9" ends the process uncleanly and is one of the easiest ways to silently corrupt files.
# 3  
Old 11-30-2010
methyl is right on about kill -9.

zombies use no resources except one - they use a process entry slot. Unless you have really large numbers of zombies that is usually not a problem.

zombies are caused by the parent process doing something stupid, namely not wait - ing on a child process. This can often be caused by blocking SIGCHLD with SIG_IGN. In that case the only way for the zombie to go away is when the parent exits, and init adopts the zombies. One of init primary jobs is to wait for parentless processes, adopt the zombie process and then wait for the zombie so it can leave and go to heaven.

I personally think people's aversion to zombies has more to do with the movies and popular culture and very little to do with what they do to unix boxes. It's all in the name.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

2. Shell Programming and Scripting

Help with zombie processes

:)how do we list zombie processes in unix server??? :confused: (3 Replies)
Discussion started by: nikhil jain
3 Replies

3. Programming

Zombie in C

hello all, when we are creating a process by using fork, if the child process terminates before parent, the child process exists as zombie.. My doubt is when that child process terminates, how come that process exists further and show as a zombie process..can anyone help me to clear about this? (1 Reply)
Discussion started by: aarathy
1 Replies

4. Red Hat

zombie

Hi, Linux redhat 5.5 top shows that i have 20 zombie process : Tasks: 357 total, 1 running, 336 sleeping, 0 stopped, 20 zombie Cpu(s): 0.2%us, 0.3%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 24949400k total, 2363052k used, 22586348k free, 227084k buffers... (1 Reply)
Discussion started by: yoavbe
1 Replies

5. Solaris

How to Kill Zombie Process

Dear Bos, I have one server,everday if I check with command TOP always present zombie,like below: last pid: 4578; load averages: 0.15, 0.11, 0.13 07:56:15 298 processes: 295 sleeping, 1... (10 Replies)
Discussion started by: fredginting
10 Replies

6. Linux

How to kill zombie process

I have RHES4 machine with VRTSralus - Backup Exec agent installed there and running as a service. The agent hiccups sometimes and turns into defunct state. The problem is that I cannot kill it anyway., it stays there forever until the machine is rebooted. I wonder if anyone had such an experience... (1 Reply)
Discussion started by: will_mike
1 Replies

7. Linux

zombie process

Hi What is the command to find only the zombie processes?? How to write the code in C to fetch the no. of zombie processes?? Thanx (5 Replies)
Discussion started by: jeenat
5 Replies

8. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

9. UNIX for Advanced & Expert Users

Zombie process

I would like to create a zombie process so that I can test monitoring software functionality. Any techniques? (2 Replies)
Discussion started by: swhitney
2 Replies

10. UNIX for Dummies Questions & Answers

zombie program

When you run a ps -ef and if the status is a Z (zombie) does that mean the same as not responding? (Like a windows machine). Also has anyone here heard of the program called 'top' (I've found it on our Solaris 7 machines) If you have you might be able to help me. I need to know if there is a... (8 Replies)
Discussion started by: merlin
8 Replies
Login or Register to Ask a Question