killing zombie threads

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat killing zombie threads
# 1  
Old 05-10-2009
killing zombie threads

I have an app server running on Redhat 4.0. There are about 30 processes spawned (all by the same user). When the DB goes down before the app server, it leaves them all running, but they're zombies. The app utility can't shut them down even when the DB comes back up. I've killed them from the command line (kill -9 ####), but there are 3 boxes and that's a lot of killing Smilie

Is there a way to kill all threads for a user? I'm thinking a shell script, but my grep skills are weak.

Anyone feel like giving it a shot?
# 2  
Old 05-10-2009
Try using pkill(1), e.g.:
Code:
# pkill -u username

# 3  
Old 05-11-2009
Thanks Tony...

Wouldn't let me kill them all, but it whittled it down a lot.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

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

3. Solaris

Killing a zombie process[PRD]

Dear All, I have checked so many post about killing Zombie process. Most of the cases, everyone suggested to "reboot" the system, as "kill -9/-15 zombie" may not work! My concern is: If the system is a Production server then what to do? Regards, Sapy. (6 Replies)
Discussion started by: saps19
6 Replies

4. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

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

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

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

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