I am seeing processes on my SGI Altix 450 running SLES 10.1 seemingly stop running (i.e. not provide further output in their logs for hours). At this point I want to kill the offending process so I can restart it. Top shows that the process is in the (R) state. Although when I attempt to kill it nothing happens. Even when I use kill -9 it still lingers. In this case what can I do other than restart the machine?
Linux – How to kill processes unresponsive to kill -9
linux
Related Topic
- Linux Init Script – Troubleshooting Strange Behavior When Starting Processes
- Linux – How to find a specific PHP process with pgrep (monit related)
- Linux – Zombie processes still alive and working fine, but can’t be killed
- Linux – How is a process stuck in uninterruptible sleep handled on user logout
- Linux Systemd – Configure Buggy Service to Terminate via SIGKILL
- Linux – systemctl shows inactive / dead, but service is running
Best Answer
It is possible that process is killed but waiting for parent to collect its return value. In that case after it is killed it would be in state 'Z' and not 'R'. In that case you should find
ppid
of process usingps
command and kill the parent process too(If you are really sure it wont cause any problems).The other case could be that for some reason process is restarting after being killed like tty. In that case the process id should change every time you do kill -9. See if process ID is changing every time you are try to kill it.