Weblogic Thread Dumps

There could be scenarios like Server Hang, Crashes, Performance delays where you might need to capture Weblogic Thread Dumps for further analysis.

Thread dumps provide a snapshot of the current active threads. It provides the stack trace of all the java threads in the JVM.

There are different ways to capture thread dumps; some are based on the operating systems.

On Windows:

  1. Go to the server standard output and press a Control + Break and copy the thread dump onto a file

On UNIX/ Linux

Find the process id for your server

  1. Ps –ef  | grep java
  2. Kill -3 <pid>


WebLogic utilities to capture thread dumps

1. webLogic.Admin utility

a. Open a command prompt , set the classpath running <DOMAIN_HOME>/bin/setDomain.env

b. Execute the below command

java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic1 THREAD_DUMP

Note: Thread Dump will be printed to the servers standard out (by default, the shell in which the server is running).

2. Using Admin Console

a. Log into the Admin Console , click on the server

b. Click onto the Server  –> Monitoring  –> Threads

c. Click on the Dump Thread Stack



3. Using WLST (WebLogic Scripting Tool)

a. Save and execute  the below snippet as ThreadDump.py









Note: The thread dumps get stored in the location from where you run the WLST script


If your Server is running as windows service, then follow the below steps

1. Open a command prompt and execute the below command

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

There are other tools that can be used to capture thread dumps for example jrcmd (for JRockit) ,Samurai etc.

NOTE: It is recommended to capture a set of 6-7 thread dumps at an interval 8-10 seconds to find a pattern in the thread execution.


Wonders Team

Latest Comments

  1. naresh November 20, 2011
  2. Sushil Kumar February 25, 2012
    • Administrator February 26, 2012
  3. Sandeep May 7, 2012
  4. Srinath Menon May 8, 2012
    • Administrator May 9, 2012
  5. venkat siva June 22, 2012
    • Administrator June 22, 2012
  6. Abhishek September 5, 2012
    • Administrator September 6, 2012
  7. Mohan September 7, 2012
    • Administrator November 4, 2012
  8. Raghu September 11, 2012
  9. ravi September 18, 2012
    • Administrator November 4, 2012
  10. shanth Kumar February 14, 2013
    • Administrator January 16, 2014
  11. Sri September 17, 2013
    • anandraj September 18, 2013
  12. Sudheer Kumar July 7, 2017
    • Administrator July 27, 2017

Leave a Reply