UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2006-11-21 12:38 AM

hlasso
Member
Registered: 2006-11-21
Posts: 8

Re: Finding out who used to be the zombie...

Hi everyone,

I hope someone out there can help me with this problem, I guess Rob or Michael might have the answer:

I need to find out the name of the process that is turning into a zombie by "disecting" the zombie.

I'll explain:

In a AIX 5.3 production environment, some processes are dying constantly and leaving behind zombies... however, I haven't been able to see which processes became zombies, and it is imperative that I can do that.

I was hoping someone could point me to some tool or procedure to find the name of the offending process.

Regards,

Hector

Offline

#2 2006-11-21 02:01 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Finding out who used to be the zombie...

I'm not sure I understand...  How can you know that there are zombie processes,
if you don't know what they are??  Are you just guessing that there might be?

Just a simple "ps ax" should show you any currently undead zombies...  (Look for
a "Z" state...)  If you mean you want to know the parent that's failing to reap the
zombie child, then maybe try "pstree" (if it exists on AIX), or "ps -H ax" (or play
around with other "ps" switches to print the PPID for every process)...

Offline

#3 2006-11-21 03:44 PM

hlasso
Member
Registered: 2006-11-21
Posts: 8

Re: Finding out who used to be the zombie...

Hi Rob,

When I said that I didn't know what these process were I meant that they show up just as "<defunct>" processes, but I need to know the name of the process that died and left the zombie behind.

Unfortunately, their fathers die so fast that I haven't been able to catch their fathers. Is there any tool to check the name of the executable that used to be the zombie using the zombie process?

If I can find out just what process is dying (or the name of the parent) I could have information to report to the software vendor.

Anyway, I'll try "ps"-ing every second for a few minutes and then searching PIDs of zombies in the history to see if I can catch them before they die.

Offline

#4 2006-11-21 07:07 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Finding out who used to be the zombie...

Ah...  On Linux at least, ps usually shows the former app name along with the
"<defunct>" tag... *shrug*  I don't know anything about AIX, so I couldn't tell you
how to get at the name, but if ps can't, it may not be possible...

But, you say the parents are dying too??  If that's the case, then how can they
remain zombies?  They should become orphans inhereted by init, which should
then reap them properly...  If they're actually zombies, then their parents MUST be
alive as well, by definition...  (Unless AIX is really particularly strange in this regard...)
Definitely try the "pstree" or "ps -H" thing (or mess with ps output formats to print
the PPID), and I think you'll see that they MUST have a living parent if they're
currently zombified...

Offline

#5 2006-11-21 09:14 PM

hlasso
Member
Registered: 2006-11-21
Posts: 8

Re: Finding out who used to be the zombie...

Offline

#6 2006-11-22 02:10 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Finding out who used to be the zombie...

Ah, so they ARE getting reaped by init?  I thought you meant the zombies were
sticking around for a long time...

If you don't have "pstree", then your "ps" probably has some similar function (like
the mentioned "-H"), or at the very least surely has some method of printing out
the PPID of displayed processes, which will be just as useful...

(BTW, Loco is that you??  WTF are you doing under a different username?? ;-))

Offline

#7 2006-11-22 02:54 PM

hlasso
Member
Registered: 2006-11-21
Posts: 8

Re: Finding out who used to be the zombie...

Offline

#8 2006-11-22 05:02 PM

biologz
Administrator
From: Puking on the pavement
Registered: 2005-11-02
Posts: 396

Re: Finding out who used to be the zombie...

Lol

I have to tag this post as the second funniest of all the forum...just after the one where Rob insult a guy who reported SQL errors on the old URL :-)


gethostbyintuition() is still a dream of mine

                                                 -- quoted from bash

Offline

#9 2006-11-22 08:35 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Finding out who used to be the zombie...

(Oh yeah, I remember that thread...  That's the type of thing that makes me wish
for some way to reach through the Net and slap idiots like that upside the head... ;-))

So, did you ever get your password reset??  If not, I'm sure there's some way I could
do it in the admin controls...  (You could've just bugged one of us to do it, too... ;-))
Or, do you prefer this new username?  (In which case, we should probably make you
an admin again...)

Offline

#10 2006-11-24 12:27 AM

HectorLasso
Administrator
From: Colombia
Registered: 2002-06-12
Posts: 353

Re: Finding out who used to be the zombie...

It's OK. I reset my password and now I have too accounts :)

It's like having two personalities :D

Thank you for the offer. I'd prefer you give me the link to the thread biologz mentioned... ;)

Regards,

Hector

Offline

#11 2006-11-24 04:40 PM

biologz
Administrator
From: Puking on the pavement
Registered: 2005-11-02
Posts: 396

Re: Finding out who used to be the zombie...


gethostbyintuition() is still a dream of mine

                                                 -- quoted from bash

Offline

Board footer

Powered by FluxBB