- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- kill -9 does not work for some processes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 05:59 AM
09-05-2001 05:59 AM
kill -9 does not work for some processes
I am not able to kill some prcesses using kill -9 pid .Theses proceses are user intiated processesand of some application and its not os related like nfs,etc.Pls let me know if anybody has any clue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:04 AM
09-05-2001 06:04 AM
Re: kill -9 does not work for some processes
1) Kill -9 is VERY BAD! Avoid if at all possible. It does no cleanup of shared memory,
temp files, ... . If you must use kill -11 it's almost as sure a kill and does cleanup.
2) If a process is blocked and waiting on I/O for example. You can signal the process all you want and it will not respond.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:46 AM
09-05-2001 06:46 AM
Re: kill -9 does not work for some processes
when some of the application process becomes orphan,their PPID will be set to PID of init process(1). such process can't be killed by kill -9. onlt way to getrid of such process is to reboot the machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:49 AM
09-05-2001 06:49 AM
Re: kill -9 does not work for some processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:51 AM
09-05-2001 06:51 AM
Re: kill -9 does not work for some processes
This is not a 100% workaround and you have to be very cautious before executing this command.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:54 AM
09-05-2001 06:54 AM
Re: kill -9 does not work for some processes
What processes will not die? SOunds like you need to get with your users to see what they are doing.
Processes that are waiting on I/O or sometimes user input will not die without killing the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:56 AM
09-05-2001 06:56 AM
Re: kill -9 does not work for some processes
Like shawn has been saying, zombie or defunct processes are difficult to kill. I believe some applications advise to use kill -3 to kill th application initiated processes.
See th man pages of kill for more info.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 07:03 AM
09-05-2001 07:03 AM
Re: kill -9 does not work for some processes
Zombie's or (defunct) processes are impossible to kill - they are already dead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 07:16 AM
09-05-2001 07:16 AM
Re: kill -9 does not work for some processes
I think we need more info from the author of this question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 07:19 AM
09-05-2001 07:19 AM
Re: kill -9 does not work for some processes
Why am I hearing Stephen Ciullo's "THEY"RE DEAD!!!" echoing through my head? hehehehe
If they *are* zombies (PPID=1), don't forget that init goes through periodically and strokes its adopted orphans with a WAIT2 which should clear them.
Kuls,
If your users/programmers continue on this wreckless path, I'd suggest the liberal application of an aluminium baseball bat. It makes a very satisfying ping! sound when it ricochets off the skull of a clueless luser.
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 12:47 PM
09-05-2001 12:47 PM
Re: kill -9 does not work for some processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 12:55 PM
09-05-2001 12:55 PM
Re: kill -9 does not work for some processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 08:30 AM
09-06-2001 08:30 AM
Re: kill -9 does not work for some processes
I am going to take this oppurtunity to make like Gene Krupa and pound my favorite drum again.
When a unix process is waiting for an I/O event to occur, either it will occur within a "reasonable time"(like 5 minutes for example), or it will not occur within a reasonable time. 99.999% of I/O requests complete within a "reasonable" time.
Why couldn't an I/O wait set a parallel 5 minute timer that would wake up the process and cancel the never ending I/O wait. This would make it possible to "kill" the process, without resorting to a reboot.
A cleaner solution would be to provide the ability within unix to "kill" an "I/O waiting process" by doing everything termination does on behalf of the process, without acknowledgement or cooperation from the intended victim.
My solo is fini.
CIAO