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
Why does executing the preparedstatement class cause a trunc fails: ora-00932: inconsistent datatypes error? : BEA Weblogic
Can I configure the messaging bridge to automatically downgrade the quality of service if the exactly-once service is not available on either the source or target bridge destination? : BEA Weblogic
Tell me what are the ways in which weblogic servers can run on multiple machines?
What is t3??
What is boot?properties file in weblogic server?
What are the advantages node manager?
Define memory leak ?
what are the new features of Webservices 1.6 than 1.4.From the interface and implementation aspect4.
How do I use a startup class to initialize and later reference jms objects? : BEA Weblogic
Can we deploy jar in weblogic?
How to make a managed server ?
Why do I get an exception when trying to find a connection factory? : BEA Weblogic
Explain briefly the client-server architecture.
What causes an ociw32.dll error? : BEA Weblogic
What can happen when stub can’t to connect to web-logic server instances?