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
Explain The Methods For Providing User Credentials For Starting The Server ?
When we will take thread dump?
How many admin consoles possible in a single domain?
Tell me how are the notifications generated when a server is added to a cluster?
What is weblogic?
What is the function of T3 in WebLogic Server ?
Tell me what are the steps involved in configuring the jms?
What is the difference between multicast and unicast?
What are the capabilities of weblogic server?
How many types of weblogic installation ?
I configured the messaging bridge to use the exactly-once quality of service for two-phase transactions. So why am I getting a quality of service is unreachable error? : BEA Weblogic
Explain where are the files placed while deploying the resource adapter in web logic server?
Do you know what are the steps involved in setting up classpath in web logic server?
Can you explain what are the ways to avoid resourceexceptions when sending requests for databaseconnections?
When should I use the external_stage option?