- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Run away process/es
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
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-08-2003 09:21 PM
тАО01-08-2003 09:21 PM
Run away process/es
What command can I issue to identify those run away (inactive) process/es in my system (HP-UX 11.0)?
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 09:29 PM
тАО01-08-2003 09:29 PM
Re: Run away process/es
#top
will give status of processes by R- running
S- sleeping Z- zombie.
Also
#ps -ef | grep defunct
will show zombie processes.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 09:35 PM
тАО01-08-2003 09:35 PM
Re: Run away process/es
top
Defuct processes are dead, and should not be taking up any cpu cycles. you cannot kill these off (they are dead)without a reboot as they are not waiting for the kill signal anymore.
ps -ef |grep defunt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 09:43 PM
тАО01-08-2003 09:43 PM
Re: Run away process/es
#top is good. Any other workaround?
Hi Kevin,
Thanks for a very specific definition.
What I intend to do here is to create a script that will run in a given time and will check run away process/es and will automatically kill it. That's why I am looking for a other possible workaround aside from the command 'top'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 10:04 PM
тАО01-08-2003 10:04 PM
Re: Run away process/es
Your could try:
# ps -ef | grep defunct | awk '{print $2}' | xargs kill -9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 10:16 PM
тАО01-08-2003 10:16 PM
Re: Run away process/es
#ps -aux
will show processes with CPU utilisation field in linux.
No sure whether it gives CPU utilisation field in HP-UX 11.0 . try it.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 10:27 PM
тАО01-08-2003 10:27 PM
Re: Run away process/es
Don't kill the parent by any means, it might just mean restarting your application (or just killing the parent).
We get this with oracle some times. It's got more to do with concurrent managers than oracle itself.
We just restart the concurrent managers and your defunct processes go away.
As I said though, look for the parent id of the defunct ones.
As for high CPU utilization, I'm trying to figure that out at the moment myself.
Sometimes you get high CPU utilization but it's because someone is doing something, doesn't necessarily mean it's dead. It may or may not have a tty associated with it. If anyone has ideas, let me know.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 10:37 PM
тАО01-08-2003 10:37 PM
Re: Run away process/es
As per my readings...
Processes with high CPU utilization AND PPID=1 is considered run-away process. This applies to processes invoke other that the 'root' account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 10:39 PM
тАО01-08-2003 10:39 PM
Re: Run away process/es
As per my readings...
Processes with high CPU utilization AND PPID=1 is considered run-away process. This applies to processes invoke other that the 'root' account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 09:29 AM
тАО01-09-2003 09:29 AM
Re: Run away process/es
Your last statement isn't strictly true either - lots of daemon processes don't run as root but have a ppid of 1, and as Scott points out they could potentially be using a large amount of CPU doing valid work. It could be a dangerous thing to write a script that automatically kills these processes!
Any process that has been using 100% of one CPU for a period of time longer than a few minutes could be considered 'suspect', but thats about it. I suggest your script simply notify you so you can investigate and manually kill the process if necessary.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 09:40 AM
тАО01-09-2003 09:40 AM
Re: Run away process/es
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 03:18 PM
тАО01-09-2003 03:18 PM
Re: Run away process/es
Thanks for the clarrifications... I guess i just stick with top and/or glance plus in manually monitoring my systems run-away process/es.
Regards...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2003 02:07 AM
тАО01-10-2003 02:07 AM
Re: Run away process/es
UNIX95= ps -eopid,ppid,pcpu,etime,vsz,args
This give the PID, parent PID, current percent cpu used, elapsed cpu time, memory size and command details for all processes on the system.
you can then use sort to order this by any of the columns that you want to
eg:
UNIX95= ps -eopid,ppid,pcpu,etime,vsz,args | sort -rnk 3
sorts based on %cpu.