Operating System - HP-UX
1834935 Members
2261 Online
110071 Solutions
New Discussion

Re: Kill -9 does not kill process

 
Carry
New Member

Kill -9 does not kill process

Hello,

The system is HPUX B.11.00 U 9000/800

Some process (top, find, glance) cannot be killed even using sigkill. They are not defunct, just hanging. They're all detached from the tty (?). Some of them are months old.
Is there any known issue regarding this problem?
I suspect a kernel problem but could not find any related patch or whatever.
Any clue?

Thank-you,
Regards,
Gilles.
9 REPLIES 9
OldSchool
Honored Contributor

Re: Kill -9 does not kill process

Most likely, these are waiting on i/o. If in that state, as far as I know, they can't respond to the interupt/kill.

only way i know is re-boot the server.
Borislav Perkov
Respected Contributor

Re: Kill -9 does not kill process

Hi Carry,

You need to reboot the system if the processes are so old, if it is for glance,top and find. Try to see maybe which are their parent processes, you can kill them.

You can try to kill them from SAM -> Proccess Management -> Process Control. Find the process , select it and in Action choose Force kill.

Regards,
Borislav
Raj D.
Honored Contributor

Re: Kill -9 does not kill process

Hi Carry,

1. Check the PID with ps -ef
2. Try killing the process with kill -9
# kill -9 PID

3. If it is not able to kill, then the process might have waiting for i/o or become a zombie.

4. And hopefully reboot will resolve the issue.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Bharat Katkar
Honored Contributor

Re: Kill -9 does not kill process

Yes, rebooting the server is the only option left now...
Regards,
You need to know a lot to actually know how little you know
AwadheshPandey
Honored Contributor

Re: Kill -9 does not kill process

Gilles, kill -9 can kill only running process, you have to reboot ur system(The Only Way.

Awadhesh
It's kind of fun to do the impossible
Muthukumar_5
Honored Contributor

Re: Kill -9 does not kill process

Same problem:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=974759

It is waiting for some I/O. It will not end upto getting reboot (init 6).

hth.
Easy to suggest when don't know about the problem!
Sยภเl Kย๓คг
Respected Contributor

Re: Kill -9 does not kill process

Hi,

I believe these process has been detached from tty and got a process id of init. You may have to reboot the system.

Regards,
SUnil
Your imagination is the preview of your life's coming attractions
Carry
New Member

Re: Kill -9 does not kill process

Lads, thank-you for all these answers.
Alas, it does not change anything for me right now.
I know in my situation, the only way to get rid of these processes it to reboot the system. But rebooting will temporarly solve the problem. Also ths is a production system so we cannot stop it just like this.
I wish I could find some patch or whatever not to have these hanging processes come back after a reboot.
I don't believe this is a application issue since the identified (faulty?) processes are: find, top and glance, so far.
I'm also convinced that this is a bug somewhere in the kernel or in a system shared lib because such behaviour is hardly found in other OS releases or Unices.

Thnak you for your help anyway.
OldSchool
Honored Contributor

Re: Kill -9 does not kill process

If using PC terminal emulators, on cause of this problem is the user simply closing the window instead of logging out. no way to patch that