- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- killing old 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
01-31-2005 08:28 AM
01-31-2005 08:28 AM
killing old processes
I work for a software development company and our developers constantly test new software.
The problem that arose is that after their build is done, it leaves bunch of processes running, which eventually kills the system.
Is there any way to find out which processes have been running for 4 days and kill them (they belong to a particular user)?
I've read various posts here and couldn't find anything to help me figure out this problem.
Thank you!
Asya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 08:40 AM
01-31-2005 08:40 AM
Re: killing old processes
That will provide you all the information you need on the processes.
There are lots of processes on your box that run for more than 4 days, so something that nukes all processed that have run that long will kill the box, same as the old processes.
This sounds like an education issue. Have your developers run the ps command and kill their own processes when they log off.
Alternatively use ps -ef | grep developername to get the process list and kill them that way.
I'm attaching a script called gkill. It kills groups of processes based on pattern matching. It won't touch root processes. Used judiciously, it can help you with this issue. I have a non-interactive version as well, if you like the tool.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 08:48 AM
01-31-2005 08:48 AM
Re: killing old processes
done, this is obviously a problem with the software
being developed. Let your developers know about this.
Steven has already told you how to remove these
processes, but once your product is released, the
customers are not going to like processes being left
over even after the software is done.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 09:59 PM
01-31-2005 09:59 PM
Re: killing old processes
Try this as a teaching method.
put this line in root's crontab:
1 2 * * * su - baduser -c 'kill -9 -1'
(substitute the username of the process owner)
This will kill all processes owned by baduser at 02:01 every morning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 03:04 AM
02-01-2005 03:04 AM
Re: killing old processes
Yes, i know this is an educational matter and developers should know better. But as I said, this is a testing procedure and you guys telling me to tell developers to fix it themselves is not a very good solution.
I've decided to create a tmp file (though cronjob) where every monday server stores PID's of jobs that belong to this particular user. On saturday there is a cronjob that kills all those PID's.
Thank you for all your responses. I'm closing this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 03:05 AM
02-01-2005 03:05 AM