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
Answer Posted / 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 |
Post New Answer View All Answers
How do I issue the close() method within an onmessage() method call and what are the semantics of the close() method? : BEA Weblogic
How you deploy your applications on weblogic server?
What is a local transaction?
What Is The Purpose Of Clustering ?
How do I publish an xml message? : BEA Weblogic
Define the functions of t3 in the web logic server?
What can I do when I get java.lang.outofmemoryerror because producers are faster than consumers? : BEA Weblogic
When we will take thread dump? Please give us some examples?
What is a thread dump?
What is wlst?
Can you use a foreign jms provider to drive an mdb transactionally? : BEA Weblogic
What is weblogic application server?
Difference between production and development mode?
Can the messaging bridge handle two-phase or global transactions between separate weblogic server domains or between different releases? : BEA Weblogic
How can os authentication be connected with weblogic jdriver for oracle and connection pools?