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 deploy your applications on weblogic server?
How can classpath be set?
How to find out the listening ports?
What is a local transaction?
How can default JVM be changed to other?
What are logics in reference to web logic servers?
Is an xslt processor bundled in weblogic server?
How do I prevent errors when running t3dbping? : BEA Weblogic
How is the security handled in web logic j2ee connector architecture?
What is Multicast?
Which is the only method defined in the javax.ejb.handle interface? : BEA Weblogic
I am using a weblogic multitier driver in an applet as an interface to a dbms. If I run the class using the sun appletviewer on my local machine, I have no problems. But when I try to run the applet in a netscape browser, it will not connect 83 the two primary cluster services provided by weblogic server are? : BEA Weblogic
How you will analyse threads state using samurai tool?
What is a stage deployment?
Can you explain what are the ways in which the dns request of failed servers handled?