Wednesday, October 8, 2008

Thread Dump: How to take thread dumps


There are many ways to take a thread dump depending on the operating system you are using.


Solaris or Unix box:

Kill -3

Windows box:

Run setWLSEnv.cmd.
(%WL_HOME%\server\bin\setWLSEnv.cmd)


Then execute:

java weblogic.Admin -url <> -username weblogic -password weblogic
THREAD_DUMP

Windows Service:

WL_HOME\bin\beasvc -dump -svcname:service-name >>

Where WL_HOME is the directory in which you installed WebLogic Server and
service-name is the Windows service that is running a server instance.

Thread dump will be re-directed to server log file.

For more details you can go through the link below,

http://edocs.bea.com/wls/docs81/adminguide/winservice.html

No comments: