- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- meaning of ps output
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
тАО08-21-2001 12:39 PM
тАО08-21-2001 12:39 PM
PID TTY TIME COMMAND
17866 ttypf 0:00
What is the meaning of
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 01:01 PM
тАО08-21-2001 01:01 PM
Re: meaning of ps output
defunct process = zombie process
A defunct process is a child process whose parent died without doing a wait on the child. It takes up no resources other than an entry in the process table. The only way to remove this from the process table is
to reboot the system.
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 01:26 PM
тАО08-21-2001 01:26 PM
SolutionA defunct (or zombie) process is a child process whose parent did not execute a wait for the child. Depending on how the defunct is created, it CAN sometimes be cleaned up.
For instance, I have Oracle concurrent managers (Oracle Apps), that occasionally put out defunct processes. To clean up these defuncts, all I have to do is bounce the concurrent managers.
I'm not positive, but apparently a defunct can result from a parent process that is still alive. When that parent process is cleaned up, it cleans up its defunct children. I'm not sure of the exact internal workings (hopefully another guru can fill me in), but this is the only thing I can figure.
I guess what I'm getting at is that as a relative newbie to the HP-UX world, I've heard countless times that you have to reboot to clear out a defunct; but, that is not neccessarily true. In at least some cases, defuncts can be cleaned up by cleaning up the process that created them.
Hope this helps,
Jared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 01:27 PM
тАО08-21-2001 01:27 PM
Re: meaning of ps output
The manpage of ps tells you what a defunct process is
/Begin/
a process that has exited and has a parent, but has not yet been waited for by the parent, is marked
/End/
Doing a "man exit" and looking for zombie, will give you more information about defunct or zombie processes.
Don't think, there is a simpler explanation then what Marcin has already given.
And yes it doesn't take up any resources other than a slot in the process table.
But if you have a lot of defunct process, then that needs more investigation.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 04:47 PM
тАО08-22-2001 04:47 PM
Re: meaning of ps output
If the parent is 1, then you may need to bounce the
server to clear it. If not, then it should clear up when
the parent exits.
If you have defunct processes hanging around for a
long time see if you can find a patch for the parent
process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2001 07:16 AM
тАО08-24-2001 07:16 AM
Re: meaning of ps output
Ooups,
Attention, these process are not live nor die. So that, they did not free their resources and you can have serious problems having such processes. Some of them could be ( in a very small situations ) killed by the system, but most of time you will need a system reboot to erase them.
Possible cause:
Application miss programming.
have a look on my thread which explains :
-Why you have Zombies.
-How to avoid Zombies.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9,00.html
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2001 02:53 PM
тАО08-24-2001 02:53 PM
Re: meaning of ps output
EVERY process becomes a zombie (output of "ps -el"
show a "Z" in the state column), when it exits, regardless
wether by being killed or by calling "exit()" or something
else. It stays in that state until its parent process has
received the signal "Death of a Child" (SIGCHLD). Then
the zombie disappears. Its a normal state!
The ONLY way to not become a zombie, is for the parent
to block that signal SIGCHL before calling "fork()".
A "runaway" process is just one, which eats up lots of
cpu time without stopping eventually. This is usually
considered to a bug, i.e. abnormal.
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2001 07:36 AM
тАО08-28-2001 07:36 AM
Re: meaning of ps output
I experienced just before a command to release Zombies by the following command :
#kill -HUP
While :
1. The process id stand for Zombie process ID.
2. parentProcessID is the Parent Process ID.
3. parentProcessID is different from any system PID ( only if it's a user Parent process ).
Notice :
But I'm not sure if the resources belonging to the killed Zombie is back to the system ?.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2001 10:04 AM
тАО08-28-2001 10:04 AM