Thursday, August 25, 2011

Thread dump in windows

on the command prompt (cmd)
go to the weblogic path ex: D:\work\wls\user_projects\domains\base_domain>
set environment variables ex: D:\work\wls\user_projects\domains\base_domain>setEnv.cmd
enter below command
ex: D:\work\wls\user_projects\domains\base_domain> java weblogic.Admin -url t3://localhost:7001 -username weblogic -password welcome1 THREAD_DUMP
replace t3://localhost:7001 with your console address
replace weblogicwith your console username
replace welcome1with your console password
enter the last command 5 times in 5 seconds.

You can also use WLST
connect('username','password','t3://ip:port') threadDump('true', 'td1.txt') 

         if you are using SSL
>java weblogic.WLST 
>connect('username','password','t3s://ip:port') threadDump('true', 'td1.txt') 


Rayzone said...

@Robin:Nice Post :D

DO check the below link for various options of TD.

wikiconsole said...