- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- zombie process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 04:43 PM
тАО07-07-2006 04:43 PM
I observed a defuct (zombie) process.
$ ps -ef|grep defunct
root 27565 27437 234 Jun 14 ttypa 31788:23
sksonkar 26774 26050 0 21:42:59 ttyp7 0:00 grep defunct
How to find out which application or program caused this zombie process ?
Is there a way to kill this process ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 04:50 PM
тАО07-07-2006 04:50 PM
Re: zombie process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 04:52 PM
тАО07-07-2006 04:52 PM
Re: zombie process
It does not look like a zombie, I hope you can kill it.
In order to see its parent look at PID=27437 and its parents.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 04:56 PM
тАО07-07-2006 04:56 PM
Re: zombie process
You have the PPID, its easy to find the root cause. Use, # ps -p
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 05:27 PM
тАО07-07-2006 05:27 PM
Re: zombie process
$ ps -p 27437 -f
UID PID PPID C STIME TTY TIME COMMAND
root 27437 27402 0 Jun 14 ttypa 0:00 ksh
$
Is there any clue with this output ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 05:50 PM
тАО07-07-2006 05:50 PM
Re: zombie process
I'd like to see parents of PID=27402, but it looks like you have a login session on /dev/ttypa and the defunct process has been ran from it.
Did you try to kill it from the parent session ? What about kill -9 ?
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 01:21 PM
тАО07-08-2006 01:21 PM
Re: zombie process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 04:12 PM
тАО07-08-2006 04:12 PM
Re: zombie process
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 04:20 PM
тАО07-08-2006 04:20 PM
Re: zombie process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 05:51 PM
тАО07-08-2006 05:51 PM
Re: zombie process
best regards,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 06:26 PM
тАО07-08-2006 06:26 PM
Re: zombie process
Zombies hold resources such as memory but don't consume new resources.
So long as there are not a lot of new zombies being created, your system can remain stable with a zombie process. Sometimes a zombie may have a critical file handle or somemthing on hold leaving you no choice but to deal with it.
There comes a point in every zombie's life where it must die. That is usually accomplished with a system boot.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 02:13 AM
тАО07-09-2006 02:13 AM
Re: zombie process
Go through this link, it should help you http://en.wikipedia.org/wiki/Zombie_process
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 05:27 AM
тАО07-09-2006 05:27 AM
Re: zombie process
To kill this type, you would have to do a kill -9 of PID AND PPID at once...
It is not (yet?) a true zombie (where PPID is 1...) so you stand a chance of killing it, what srupises me here is the fact that is has still a tty attached (ttypa)... where true zombie would be marked "?" I believe like Victor F. that you would have to trace PPIDs, it was mabe partt of a sequence of processes...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 06:32 AM
тАО07-09-2006 06:32 AM
Re: zombie process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 09:20 AM
тАО07-09-2006 09:20 AM
SolutionIt might be easier to see the ancestry of this process thusly:
# UNIX95= ps -efH -o pid,ppid,state,tty,args|grep ttypa
You can interpret the 'state' field from the 'ps(1)' manpages. A "Z" denotes a dead (defunct, or zombie) process.
A zombie is already dead and cannot be killed, even with the kill-of-last-resort ('kill -9').
In your 'ps' output as originally posted, I'd be more interested in the process's parent --- 27437. It may be that *that* process is waiting for a signal or resource so that *it* can continue and thus reap its (defunct) child.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 09:31 AM
тАО07-09-2006 09:31 AM
Re: zombie process
$ UNIX95= ps -efH -o pid,ppid,state,tty,args|grep ttypa
27437 27402 S ttypa ksh
27565 27437 Z ttypa
18104 18088 S ttypb grep ttypa
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 10:12 AM
тАО07-09-2006 10:12 AM
Re: zombie process
As Clay noted, try killing the *parent* process. I'd use:
# kill -1 27437
# kill -15 27437
# kill -9 27437
...in that order, testing for presence of the process after each step. I also agree with Clay insofar as killing the your process's parent (27437) may only cause your defunct process to be inherited by 'init'.
If your process still persists, repost the process hierarchy I first had you do.
Zombie processes are actually a *normal* transition state in a process's lifetime, although, they are fleeting when correct programming practices are followed.
It would be useful to know what HP-UX release this system is running, too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 11:11 AM
тАО07-09-2006 11:11 AM
Re: zombie process
# uname -a
HP-UX BigGuy05 B.11.11 U 9000/800 1189444676 unlimited-user license
#
Could you please explain how it killed because i tried killing with $kill -9 pid/ppid and it didn't work earlier ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 11:51 AM
тАО07-09-2006 11:51 AM
Re: zombie process
You said that $kill -9 PID fails but #kill -1 PID worked. Note the '$' and '#' (presumably ${PS1}) prompts; you did one as a regular user and the other as super-user. As a regular user, you did not have permission to signal a process that you did not own but as a super-user you could send such a signal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 01:11 PM
тАО07-09-2006 01:11 PM
Re: zombie process
You are right. Now i can recall that i had tried to kill with normal user id and not as a super user.
Regards,
Shiv