How to kill zombie process


 
Thread Tools Search this Thread
Operating Systems Linux How to kill zombie process
# 1  
Old 09-04-2008
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 and know the way to kill zombie service.

Here is the line from `ps aux` under normal condition:
root 2593 0.0 0.0 66612 7064 pts/1 S 16:13 0:00 /opt/VRTSralus/bin/beremote

The next one is I mentioned before which I cannot kill unless I restart the server whci is not an option as it is a production Oracle DB server.
root 10183 2.5 0.0 0 0 ? Z Aug25 370:58 [beremote <defunct>]

I guess it is a zombie one:
[root@jdedb2 root]# ps -elf | grep Z
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 Z root 10183 1 2 75 0 - 0 t> Aug25 ? 06:10:58 [beremote <defunct>]
4 Z root 27536 1 2 75 0 - 0 t> Sep02 pts/1 01:11:55 [beremote <defunct>]

I need to add that on the top of these zombies there is unusial iowait %. I do not know if it is related to these zombies, but I wonder if anybody knows how to trace what process is causing high iowait %

[root@jdedb2 root]# top
17:48:39 up 19 days, 18:54, 3 users, load average: 3.24, 3.14, 3.17
392 processes: 389 sleeping, 1 running, 2 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 3.2% 0.0% 3.6% 0.0% 0.0% 200.4% 192.0%
cpu00 0.0% 0.0% 0.0% 0.0% 0.0% 100.0% 0.0%
cpu01 1.9% 0.0% 2.9% 0.0% 0.0% 2.9% 92.0%
cpu02 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 100.0%
cpu03 1.5% 0.0% 0.7% 0.0% 0.0% 97.6% 0.0%
Mem: 16304516k av, 16194096k used, 110420k free, 0k shrd, 55232k buff
11648432k actv, 2245884k in_d, 324248k in_c
Swap: 12287992k av, 0k used, 12287992k free 13305320k cached

I appreciate if you can help.

Last edited by will_mike; 09-04-2008 at 10:07 PM..
# 2  
Old 09-04-2008
If your zombie is owned by init, a reboot is the only way to remove it. Fixing the code that caused the zombie is the only way to keep them from recurring.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Zombie process

What is the overhead associated with zombie process?Is it running out of process-ID?:confused: Since some information is stored in process table.. Thanks in Advance (4 Replies)
Discussion started by: jois
4 Replies

2. UNIX for Dummies Questions & Answers

what is zombie , how to kill it ,

Hello I try to googled it , but I dint get sufficient answer :( .. 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 Replies)
Discussion started by: kvok
2 Replies

3. 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

4. AIX

zombie process

Is there an equivilant to the preap command in AIX that would allow me to get rid of a zombie process. I am new to AIX, moving over from Solaris and in the past I have been able to preap the pid on the defunct process to clean them up. I have looked around and the best I can see is that it may... (3 Replies)
Discussion started by: sboots
3 Replies

5. Solaris

zombie process

dear friends, in an interview they asked me what is zombie process. how we can identifying these process.if can you kill all zombie process. (8 Replies)
Discussion started by: sijocg
8 Replies

6. Shell Programming and Scripting

Zombie process

Hi I need help because I don't know if it is possible to add a find inside a cat. like I have a file with the pid of the process that use to became zombie. And I have the same pid stored in the var (pid1) now, I have no clue how to check if the the find finds the pid or even if it's... (2 Replies)
Discussion started by: ruben.rodrigues
2 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

zombie daemon process!!

My daemon process is the child of init and init has the responsibility to remove it, once it turns zombie. But I want to ask why the daemon process which is child of init turns zombie in the first place. What measures I have to take to avoid this? rish (1 Reply)
Discussion started by: rish2005
1 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 process

How do i kill a zombie process. Is it that only root can kill a zombie process. (8 Replies)
Discussion started by: orca
8 Replies
Login or Register to Ask a Question