cancel
Showing results for 
Search instead for 
Did you mean: 

Re: hung unix process

 
SOLVED
Go to solution
Shivkumar
Super Advisor

hung unix process

Dear Sirs,

What is the command to identify hung unix process ?

Thanks,
Shiv
6 REPLIES 6
Joseph Loo
Honored Contributor
Solution

Re: hung unix process

hi,

do u equate hung with zombie (defunct) state? if so, u may use this:

# ps -ef|grep -i defunct

man ps for more info.

regards.
what you do not see does not mean you should not believe
lawrenzo
Trusted Contributor

Re: hung unix process

or you can use this to search zombies:

ps -edalf |grep " Z "

HTH
hello
Cem Tugrul
Esteemed Contributor

Re: hung unix process

Shiv,

ps -ef|grep -i defunct
or
ps -eaf|grep " Z "

will show you zombie procs

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Mahesh Kumar Malik
Honored Contributor

Re: hung unix process

Hi Shiv

top command will give no of zombie processes.

ps -ef |grep "Z" will provide their PID

Regards
Mahesh
Muthukumar_5
Honored Contributor

Re: hung unix process

A process that has exited and has a parent, but has not yet been waited for by the parent, is marked .

Collect as,

$ ps -ef | grep ''

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: hung unix process

We can not get process state of Z (zobie) with -f option with ps. You have to use -l or -fl with -e option.

$ ps -el | grep 'Z'

hth.
Easy to suggest when don't know about the problem!