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

Answers were Sorted based on User's Feedback



By default thread dump goes to System.out log.How can we send it to a particular file so that when w..

Answer / 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

By default thread dump goes to System.out log.How can we send it to a particular file so that when w..

Answer / guest

Kill -3 <PID> Filename.txt
If you specify a particular file name after the above cmd u
will get the thread dump in that file.

Is This Answer Correct ?    10 Yes 10 No

Post New Answer

More Weblogic Interview Questions

What is the domain in weblogic server?

0 Answers  


What are the enhancements in ejb 2.0 specification with respect to asynchronous communication?

0 Answers  


How to change from development mode to production mode in weblogic 10.3?

0 Answers  


how to create a sub domain in domain ?

1 Answers   TCS, Wipro,


What is the difference between stage and no stage deployment?

0 Answers  


What are managed servers?

0 Answers  


How can classpath be set?

0 Answers  


Is it possible to set aside a message and acknowledge it later? : BEA Weblogic

0 Answers  


What are the Unix vi commands?

0 Answers  


What happens when a failure occurs and the stub cannot connect to a weblogic server instance? : BEA Weblogic

0 Answers  


how to change the weblogic server password?

2 Answers  


What are the capabilities of weblogic server?

0 Answers  


Categories