java weblogic.Admin -url t3://localhost:7001 –username weblogic –password weblogic THREAD_DUMP
localhost - IP address of admin server
7001 - port number of admin server
Go to your weblogic domain and execute SetDomainEnv.cmd (for 9.2) or SetEnv.cmd (for 8.1) on the same command prompt.
Now the command prompt is ready to call the Java class weblogic.Admin and you can see the Threads details on the console (command prompt) of the weblogic server.
if you want to see the Thread dump on a file, you need to customize your startup script and redirect your logs to a file,
Step 4: Customize the weblogic startup script to redirect the logs
Commnad to start your weblogic server
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server >> console.log
where will store the thread dumps
ReplyDeleteCollect thread dumps on windows not simple but your post made it easy.Thank you.
ReplyDeleteRegards,
weblogic server training.