1834697 Members
2383 Online
110069 Solutions
New Discussion

Can't kill the process

 
SOLVED
Go to solution
peterchu
Super Advisor

Can't kill the process

I found that there are process can't be kill even I use "kill -9 pid" , except reboot the system , how can I kill it ? thx.
8 REPLIES 8
Steve Steel
Honored Contributor
Solution

Re: Can't kill the process

Hi

Unfortunately you answered your own question.

A process needs to detect a signal to react
to it. Cases like zombies and processes in states like non reenterant io will never see the signal and can only be killed by a reboot.

Sometimes using ndd to change timers can enable you to shorten waits and thus allow a process stuck on somthing like a tcp socket to exit itself.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Fred Ruffet
Honored Contributor

Re: Can't kill the process

You probably can't. If a process is not dying after kill -9, it's probably waiting on a blocking I/O. This kind of process will only disappear with a reboot. They are a real problem when executing themselves in a filesystem you want to unmount...

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
G. Vrijhoeven
Honored Contributor

Re: Can't kill the process

Hi,

Killing its PPID could help sometimes, but if this does not work, the only solution is a reboot.

In most of the cases a process is in kernel mode when you are not able to kill it. In this situation it coult be hung becouse it is trying to access a device that is not available/defect. Solving this problem could enable the kill command to reach the process.

HTH,

Gideon
Franky_1
Respected Contributor

Re: Can't kill the process

Hi,

if a process can't be killed even using "kill -9" there's unfortunately no other optin than rebooting the server :-(

Regards

Franky
Don't worry be happy
T G Manikandan
Honored Contributor

Re: Can't kill the process

Use truss sort of tools to find the state of the process.

Zombie processes cannot be killed.

Do not kill processes with PPID 1.you are gone!!
G. Vrijhoeven
Honored Contributor

Re: Can't kill the process

Hi,

Thanks for the correction!
(killing ppid 1 )

Regards,

Gideon
presage112
Advisor

Re: Can't kill the process

I guess you can remove the sahred memory on that process ,using "ipcs" command ,then "ipcrm" command.
Muthukumar_5
Honored Contributor

Re: Can't kill the process

Process which can not be killed with kill -9 called as Zombie. It will be removed from system after reboot only.

There is a possibility as "when ever it's PPID is 1 then it will be removed with in few times " Else Try to remove new PPID so that it's PPID will reach to 1...

By normal, it will be removed on reboot only.
A discussion will give more information as,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=686510
Easy to suggest when don't know about the problem!