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 you are getting the alerts?
What are the ways to avoid resourceexceptions when sending requests for databaseconnections?
How should you type cast a remote object?
Explain about cluster heart beats?
What can happen when stub can’t to connect to web-logic server instances?
What is meant by unicast?
What is application tuning?
Explain the performance tuning in jdbc?
What is core server tuning?
What type of object is returned by resultset.getobject()? : BEA Weblogic
What happens if remove( ) is never invoked on a session bean?
How do I use os authentication with weblogic jdriver for oracle and connection pools? : BEA Weblogic
what are the new features of Webservices 1.6 than 1.4.From the interface and implementation aspect4.
What does the connected to element in the toolbar signify?
Can struck threads be killed manually?