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 |
Which of the algorithms is used by the weblogic server as the default load balancing strategy for clustered object stubs when no algorithm is specified ? : BEA Weblogic
Tell me what can happen when stub can't to connect to web-logic server instances?
what is difference between weblogic and websphere?
which protocol it user to connect manage server to admin ? where it is defined ?
What is meant by unicast?
Explain how can os authentication be connected with weblogic jdriver for oracle and connection pools?
what is heart beat in weblogic
Explain briefly the client-server architecture.
Can the bean class implement the ejbobject class directly? If not why?
In a web logic server what is the domain?
when i am starting my managed server it is coming to admin state.I used to click on resume button in admin console , so that it is comming to running state. How to resolve this problem for ever so that the server will come directly to running state instead of going to admin state?
How to migrate the weblogic domains Existing physical box to New box ? Assume:I have 2 Domains and 5 ms servers and i have deploy the application in managed servers in cluster Envirolment how to migrated? any budy give me steps ?