- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recommendations: Defunct 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
Discussions
Discussions
Forums
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
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
тАО01-11-2005 05:32 AM
тАО01-11-2005 05:32 AM
Thanks
Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 05:36 AM
тАО01-11-2005 05:36 AM
Re: Recommendations: Defunct Processes
Do a "ps -ef" and grep for defunt. Try a "kill -9 PID" to kill the defunt processes. you may be able to kill them or you may not. If you can't kill them, a reboot is the only way to clear them.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 05:37 AM
тАО01-11-2005 05:37 AM
Re: Recommendations: Defunct Processes
First you should beat your programmers soundly for leaving such sloppy code around.
Second, you can try to kill them off. Start with kill -15, then kill -11 and only resort to kill -9 out of desparation. Sometimes, the processes won't die. In that case, you can sometimes get rid of them by killing the parent. However, if they're a zombie, their parent process ID is now 1 - init - and you don't want to kill that.
You really should be spending more time on why you're getting defunct processes than you are on cleaning them up.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 05:40 AM
тАО01-11-2005 05:40 AM
Re: Recommendations: Defunct Processes
I understand, but when you are at the mercy of a major application vendor specific for hospital applications, beating them (although I would not be against that) really isn't an option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 06:04 AM
тАО01-11-2005 06:04 AM
Re: Recommendations: Defunct Processes
I always try kill -15 on the PID. This normally kills them. If that fails I use kill -9 with a 99% success rate.
Cheers John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 06:17 AM
тАО01-11-2005 06:17 AM
Re: Recommendations: Defunct Processes
If you're going to automate killing them (I wouldn't) you could probably add a log file to record things such as date/time, PID, Process Name. That may help both if the kills start causing other problems and as evidence to the vendor.
Has the vendor admitted that their app creates defunct processes?
-dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 06:19 AM
тАО01-11-2005 06:19 AM
Re: Recommendations: Defunct Processes
OK, if beating them is only a fond dream, how about regular re-boots? Do your uptime requirements allow for a nightly/weekly/fortnightly window where you could re-boot and clean up the processes that way? It would be simple enough to cron a reboot job.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 06:19 AM
тАО01-11-2005 06:19 AM
Re: Recommendations: Defunct Processes
We are not looking to automate the killing, just curious about what our next steps might be. I like you idea of a log file. That would be nice.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 06:21 AM
тАО01-11-2005 06:21 AM
Re: Recommendations: Defunct Processes
Reboots are not an option. We are fighting now trying to get a 2 hour maintenance window once a quarter. Regular reboots would not fly. I guess being a hospital makes a difference. Our apps have to be up 24/7 for patient care.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 06:26 AM
тАО01-11-2005 06:26 AM
Re: Recommendations: Defunct Processes
Sorry,
Pete
Pete