- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How To identify A hang Process in Linux
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
тАО06-11-2008 11:20 PM
тАО06-11-2008 11:20 PM
How To identify A hang Process in Linux
I am not sure whether its is on the basis of the %CPU time usage or any other parameters which decides the hang up of a process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 11:43 PM
тАО06-11-2008 11:43 PM
Re: How To identify A hang Process in Linux
A combination of top and or a process analysis script may be needed.
When I suspect a problem like this, I take a look at top and then run ps commands against the suspected process.
Automated identification is not possible in many cases. The eyes and mind of a systems administrator are required.
Take a look at this script for ps command options.
http://www.hpux.ws/?p=8
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
тАО06-12-2008 12:04 AM
тАО06-12-2008 12:04 AM
Re: How To identify A hang Process in Linux
Actually I am writing a Monitor program(using java) which should report the status of process if it is hanged up specially a web browser like mozilla.
Can You provide an idea how should i proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 01:21 AM
тАО06-12-2008 01:21 AM
Re: How To identify A hang Process in Linux
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 01:35 AM
тАО06-12-2008 01:35 AM
Re: How To identify A hang Process in Linux
So far What i have thought of taking the CPU usage(High one) and process status(Running) as the parameters to decide that a process has hanged up.But I am not sure of the approach whether its correct or not.
Please correct me if I am wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 03:11 AM
тАО06-12-2008 03:11 AM
Re: How To identify A hang Process in Linux
is a Linux forum:
http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=118
Define "hang process".
A program can get into a state where it uses
no CPU because it's waiting for something to
happen. It's really hung only if that thing
never happens. How can you decide if that
thing _will_ happen?
A program can use all (or nearly all) the CPU
for a long time without producing a result,
because it has much work to do. A user may
believe that it's hung, even though it's
simply working hard.
What condition are you trying to detect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 03:24 AM
тАО06-12-2008 03:24 AM
Re: How To identify A hang Process in Linux
Well I am looking for the first condition.But how can we decide that_thing.
Can You Please tell me your opinion on this by taking care that I am looking for a solution to detect the mozilla web browser in the hang status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 04:04 AM
тАО06-12-2008 04:04 AM
Re: How To identify A hang Process in Linux
that you would need to know exactly why (or,
at least, approximately why) the program is
hung, that is, what it's waiting for. And
whether there's any chance of it ever getting
the thing it's waiting for. (My personal
psychic powers are weak, and I don't know how
to write a psychic computer program.)
In the case of a Web browser like Mozilla,
the program can send a request (HTTP) to a
server, and wait for a response. It can
_appear_ to hang because of a problem in the
server, but the server could recover at any
time, and all would be well again (unless
Mozilla times out and moves on before the
server responds). It could also have some
problem (internal, or a bad JavaScript or
Java program) which could cause it to wait
for some event which will never happen. I
don't know any practical way you can (from
the outside) distinguish between a
slow-to-respond server and a hung client.
What, exactly, is the problem which you are
trying to solve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 05:34 AM
тАО06-12-2008 05:34 AM
Re: How To identify A hang Process in Linux
Now in case if the Browser get hang up (i do not know the reasons probably its in any case) then i need to identify it using my java code and report the same(for the time being i need to just log the data).
Can You suggest me an approach for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 03:03 PM
тАО06-12-2008 03:03 PM
Re: How To identify A hang Process in Linux
This is for HP-UX:
ps -ef |grep defunct