- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: After kill -9?
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
06-03-2002 06:50 AM
06-03-2002 06:50 AM
After kill -9?
I know kill -9 is bad and should be used as a last resort. But assume you have to do a kill -9 on all processes for a particular user, then how do I make sure that file descriptors are closed and shared memory is detached for those processes w/o rebooting. OR conversely how do I prove that the kill -9 has left some file descriptors open and the shared memory is not detached for those processes? Please voice your valuable thoughts.
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:52 AM
06-03-2002 06:52 AM
Re: After kill -9?
# man fuser
# man lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:55 AM
06-03-2002 06:55 AM
Re: After kill -9?
If a process loses its memory or file sdescriptors to the never-never world, then the only way to reclaim them is via reboot.
Using glance, lsof, and ipcs you should be able to "see" everything they have "open". If this situation is hibitual, I'd look into the root cause (what caused the hang).
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 08:10 AM
06-03-2002 08:10 AM
Re: After kill -9?
Thanks. how can i find out what files are open and what shared memory resources are not released for any particular user?
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 08:13 AM
06-03-2002 08:13 AM
Re: After kill -9?
For shared memory usage, use ipcs.
Check for used shared memory segments and owners of these segments:
# ipcs -b -m
Check for used semaphores and owners of these semaphores:
# ipcs -b -s
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 08:23 AM
06-03-2002 08:23 AM
Re: After kill -9?
The easiest way to do is to do a ps -aef | gerp on the process name , generally speaking the -9 will kill the porcess id or leave some indresct process as zombies , or leave the one started on the ports , the best way to find the remanents of teh process is to check for the ps list with the pid of the process you killed.
You can also try lsof from :
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
this will list the opne files , proceeses associated with the PID. You can download the binary version from this site for 11.00 64 bit also.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 08:30 AM
06-03-2002 08:30 AM
Re: After kill -9?
Actually we are killing the process via a logoff script which starts from the soft kill and then goes for the hard one. we also log that so that we know for which user we had to a hard kill. so i need to know based on userwise what user left what files open after this logoff and also what shared memory he has not released.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:20 AM
06-03-2002 09:20 AM
Re: After kill -9?
To remove shared memory segments or semaphores of a particular user, use ipcrm.
man ipcrm for more information.
Hope this helps. Regards.
Steven Sim Kok Leong