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
What are web logic servers?
Can we deploy jar in weblogic?
Is it possible to set aside a message and acknowledge it later? : BEA Weblogic
Differences between an application server and a web-server? What is the conman architecture which is used forhigh availability and load balancing describe in few lines.
Explain the functionality of T3 associated with WebLogic server?
How should you type cast a remote object? Why?
What is t3??
What is application tuning?
What is meant by adminserver?
What are the databases that are available to be used with the web logic j2ee connector architecture?
How many admin consoles possible in a single domain?
What is the difference between multicast and unicast?
Explain the difference between txdatasource and datasource?
What is silent mode?
Which types of jdbc databases does weblogic jms support? : BEA Weblogic