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

Why did the messaging bridge fail to connect to the source bridge destination? : BEA Weblogic

0 Answers  


What is managed server

2 Answers  


Do you know what is the local interface used by web logic server?

0 Answers  


What is weblogic unicasting and multicasting?

4 Answers   TCS,


When should I use the -nostage option?

0 Answers  






What is trouble shoot in weblogic

5 Answers   HCL, IBM,


What is the difference in the web.xml and weblogic.xml ?

0 Answers  


What is the difference between development mode and production mode of weblogic server?

0 Answers  


Explain what are the transaction isolation levels supported by weblogic jdriver?

0 Answers  


Can I use the getattribute() and setattribute() methods of version 2.2 of the java servlet api to parse xml documents? : BEA Weblogic

0 Answers  


What is wlst?

0 Answers  


I configured the messaging bridge to use the exactly-once quality of service for two-phase transactions. So why am I getting a quality of service is unreachable error? : BEA Weblogic

0 Answers  


Categories