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
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 |
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 |
how to monitor the servers
What signal tells the jvm to give a thread dump? Does those signal work if you specify -xrs? Why?
How is the security handled in web logic j2ee connector architecture?
Explain what is the purpose of stub in web-logic server cluster?
What is the local interface used by web logic server?
What is console mode?
what is difference between cor dump and heap dump. Explain the situation when you have to take thead dump and when to take heap dump
Can weblogic server start with a unix boot? : BEA Weblogic
How is the logging implementation specified in web logic?
What happens when database down in weblogic
Explain how a web logic server works?
1. What is clustering? How do weblogic instances communicate in a clustered environment! 2. In a cluster, if one of the servers has issues and is not accessible, will the other servers know about it? and how??