Sponsored Content
Full Discussion: Zombie process question
Top Forums UNIX for Dummies Questions & Answers Zombie process question Post 302514848 by royalibrahim on Monday 18th of April 2011 09:19:48 AM
Old 04-18-2011
Quote:
Originally Posted by kingpin007
Hey guys,

So i did some research on the site but previous posts answered most of my questions about zombie processes but I have one question that didnt seem to get addressed

"how do you find the parent or parent ID of a zombie process so you can kill it?"

I know p -kill doesnt always just work on the zombie process so how would you find the associated parent so you can just kill the parent process and all associated zombie processes?

---------- Post updated at 07:33 PM ---------- Previous update was at 05:52 PM ----------

Nevermind, I found the answer

Heres how you would find the parent associated with the zombie

1.Do ps-aux first and look for the letter "z" in the stat column

2. Obtain the PID of the zombie

3. Do this command to find the parent ID that relates to the zombie and then kill it:
# ps aux -eo ppid| grep <Zombie Process ID>
# kill -9 <PPID>
Code:
ps -eo state= | grep Z

will also help to find zombie process
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

10. 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
HAMEXAM(1)						      General Commands Manual							HAMEXAM(1)

NAME hamexam - Study guide for USA FCC amateur radio (ham radio) license examinations.
SYNOPSIS
hamexam [option] DESCRIPTION
hamexam presents questions in random order from the selected question pool, and terminates when all questions have been answered correctly. The session may be interrupted with ^C, and resumed later. Some questions refer to diagrams. The diagrams for the selected question pool are displayed in a separate window using eog(1). Licenses are issued by the Federal Communications Commission (FCC), but examinations are administered by Volunteer Examiners. OPTIONS
If no pool is specified, usage, version, and help information is displayed. In normal usage, one of the following options should be specified: t Element 2, the Technician Class pool. This is the entry-level license. g Element 3, the General Class pool (element 2 is also required). e Element 4, the Extra Class pool (elements 2 and 3 are also required). q The question pool is selected interactively. FILES
A directory ~/.hamexam is created to hold the names of the questions which remain to be answered correctly. SEE ALSO
For more information regarding licensing, ref. http://www.arrl.org/licensing-preparation-exams For information regarding the question pools, ref. http://www.ncvec.org/ COPYRIGHT
hamexam is Copyright (c) 2011-2012 John Nogatch <jnogatch@yahoo.com>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. BUGS
The question pools are normally good for 4 years, but are sometimes modified; ref. http://www.ncvec.org/ hamexam does not automatically update the question pools from the VEC Web site. HAMEXAM(1)
All times are GMT -4. The time now is 09:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy