Operating System - HP-UX
1834167 Members
2373 Online
110064 Solutions
New Discussion

Unable to kill a process as root

 
Admin.SIF
Frequent Advisor

Unable to kill a process as root

We currently have 3 processes from NMS (Netscape Mail Server) which are freeze and I can't delete them, even if I use "kill -9" or "kill -3". Also, one of those 3 processes have a related to it.

How it is possible and how can I take those process down. Since there are up, I'm unable to completly close the NMS server and restart it properly.
Sysd. Amin. Inforef
9 REPLIES 9
Alan Riggs
Honored Contributor

Re: Unable to kill a process as root

processes which are hung on I/O will not respond to a kill, even by root. processes can be cleared only by a reboot.
Madhu Sudhan_1
Respected Contributor

Re: Unable to kill a process as root

If you can use glance plus to view at what this process is doing ? - to start of.
Basically even root can't kill a process that is in kernel priority mode.

Thanks,
...Madhu
Think Positive
Admin.SIF
Frequent Advisor

Re: Unable to kill a process as root

Madhu, what do you means about "what the process do"? If you know NMS a little, those process are the "POP3" and "SMTP" deamons of the Netscape Mailing Server (NMS). The 3rd one is the command "stored" (to clean up the deleted mails from the NMS Database).

From Glance Plus - Process ressource window, the POP3 and the SMTP have those informations:
Scheduler: HPUX
Priority: 152
Nice Value: 20
Wait Reason: IPC
Except for the user, everything else is zero.
For the "stored" process:
Scheduler: HPUX
Priority: 138
Nice Value: 20
Wait Reason: SYSTM
Is it what you ask me ?
Sysd. Amin. Inforef
Madhu Sudhan_1
Respected Contributor

Re: Unable to kill a process as root

I meant whether the process is waiting for some I/O or IPC.... Reboot may be the easiest way to come out. But I would try using ipcrm to release the memory reserved by this process and then try to kill the process.

...Madhu
Think Positive
Dan Hetzel
Honored Contributor

Re: Unable to kill a process as root

Hi,

As Alan told you, the only way to get rid of a process is a system reboot.
A bit rough, isn't it ?

The 2 other processes are system I/O hung and there's not much you can do either (see Wait Reason: SYSTM).

The reboot will cure the 3 issues for the same price ;-)

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Shannon Petry
Honored Contributor

Re: Unable to kill a process as root

The only other thing you can try (i have had some success with omniback, and a few other things...) is to use lsof to see where it is hung. If it is hung up on lets say a rm process, you can kill that, then kill netscape whatever. It is not always worthwile to investigate because there is a very small percentage chance that it will work.

Regards,
Shannon
Microsoft. When do you want a virus today?
Alan Nicholson
Occasional Advisor

Re: Unable to kill a process as root

Although it is largely true that you cannot kill processes, I have found that they quite often die if you can identify and kill their parent processes. Unfortunately the parent process is often init (PID 1), so a reboot is your only option.
In time, on budget, good quality. Pick any two.
Admin.SIF
Frequent Advisor

Re: Unable to kill a process as root

After many tries and a call to HP Support, we finaly reboot the server. Thanks for all hints. I will keep then in case it append again.
Sysd. Amin. Inforef
Suhas_2
Regular Advisor

Re: Unable to kill a process as root

Hi,
See reboot is not the best option.
You shoild have tried the following
kill -17
kill -17 .....

That is the best option....

Hope this helps....

Suhas Oka.
Never say "Die"