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


Please Help Members By Posting Answers For Below Questions

Why does executing the preparedstatement class cause a trunc fails: ora-00932: inconsistent datatypes error? : BEA Weblogic

554


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

559


Tell me what are the ways in which weblogic servers can run on multiple machines?

548


What is t3??

555


What is boot?properties file in weblogic server?

548






What are the advantages node manager?

574


Define memory leak ?

705


what are the new features of Webservices 1.6 than 1.4.From the interface and implementation aspect4.

1742


How do I use a startup class to initialize and later reference jms objects? : BEA Weblogic

508


Can we deploy jar in weblogic?

495


How to make a managed server ?

600


Why do I get an exception when trying to find a connection factory? : BEA Weblogic

534


Explain briefly the client-server architecture.

504


What causes an ociw32.dll error? : BEA Weblogic

674


What can happen when stub can’t to connect to web-logic server instances?

517