By default thread dump goes to System.out log.How can we send it to a particular file so that when we take the thread dump, instead of searching in System.out we can analyse a particular file
Answers were Sorted based on User's Feedback
Answer / amarnath
Here is the jvm tools for taking the thread dump and heap dump.
You just go to jdk home path
Ex:
C:\Program Files\Java\jdk1.6.0_20\bin
and then issue the below command for thread dump it will
redirect you the output of the command to TD.log file under
/tmp dir
C:\Program Files\Java\jdk1.6.0_20\bin jstack -l <PID>
>/tmp/TD.log
For Heap Dump
C:\Program Files\Java\jdk1.6.0_20\bin jmap -heap <PID>
>/tmp/heap.log
Regards,
Amarnath Polu.
Weblogic Admin!!!
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / guest
Kill -3 <PID> Filename.txt
If you specify a particular file name after the above cmd u
will get the thread dump in that file.
| Is This Answer Correct ? | 10 Yes | 10 No |
Explain the difference between txdatasource and datasource?
Match the ejb functions given below with the functionality equivalent in sql? : BEA Weblogic
How does cluster communication happen?
How do I issue the close() method within an onmessage() method call and what are the semantics of the close() method? : BEA Weblogic
Which lelvel of activites ur reponsiable l1 or l2 or l3?
Which memory space does thread stack get allocated from?
What are the Unix vi commands?
What are the causes of having ociw32.dll error in the database of web logic server?
Do you know what are the steps involved in setting up classpath in web logic server?
Explain the functionality of T3 associated with WebLogic server?
How many deployment descriptor files does a cmp entity bean deployed on the weblogic server have? : BEA Weblogic
Explain about cluster heart beats?