- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is there a way to check if a process is hanging?
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
04-05-2002 12:11 AM
04-05-2002 12:11 AM
Is there a way to check if a process is hanging?
1. check manpage of ps
ps -fl shows state and more info about process. (like time and etime)
ps -pl
2. Use tusc to connect to the pid and show all the active systemcalls.
3. Use glance to check what the process is blocked on.
Any more ideas? Can we check this within an ITO monitor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 01:03 AM
04-05-2002 01:03 AM
Re: Is there a way to check if a process is hanging?
Your other option is to attach a debugger like wdb to the process to get a stack trace. This will be a lot easier if you have the source code.
To check if applications are hung, I have various scripts run from ITO every 2mins or so that checks for the responsiveness somehow. For example if its a web server I have a C program (could easily be done in perl as well) that connects to the port and requests the index page. If there is no response some action is taken - the app may be restarted or an error may be reported. Different applications will have different types of checks, but there is usually some form of active check you can do to decide whether a process is responding or not.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 01:10 AM
04-05-2002 01:10 AM
Re: Is there a way to check if a process is hanging?
If you can see the rope.....it is hanging :-))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 01:38 AM
04-05-2002 01:38 AM
Re: Is there a way to check if a process is hanging?
Also you can use ps -ef | grep " your process " and the appropiated flags to see your process activity.
I hope this help.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 02:17 AM
04-05-2002 02:17 AM
Re: Is there a way to check if a process is hanging?
Thanks in advance.
Juanma.