Operating System - HP-UX
1833691 Members
4783 Online
110062 Solutions
New Discussion

Re: How to take a thread dump for java process on HP-Ux 11i v2

 
SOLVED
Go to solution
GSK_2
Advisor

How to take a thread dump for java process on HP-Ux 11i v2

Can anyone suggest me how we can take a thread dump of a process? We are running the process in the background.
We are using

java version "1.4.2.09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.09-050713-03:34)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.09-050713-09:59-IA64N IA64, mixed
mode)
3 REPLIES 3
BPatrick
Trusted Contributor

Re: How to take a thread dump for java process on HP-Ux 11i v2

Hi Satish,
If you have Dynamo you could get the dump by
issuing
kill -3

Cheers
Patrick
Antonio Cardoso_1
Trusted Contributor

Re: How to take a thread dump for java process on HP-Ux 11i v2

Satish,

you need to redirect standard output of your background process to some file, if not already done.
Then use the kill -3 as proposed above, and you'll get the threads dump in standard output redirected file.

antonio.
Arunvijai_4
Honored Contributor
Solution

Re: How to take a thread dump for java process on HP-Ux 11i v2

Hi Satish,

You can check these pages at HP-DSPP

http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1618,00.html
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2894,00.html

You can use "tusc" to get trace with Java.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"