********** This Post is Under Updation **********
Different ways to take weblogic thread dumps
To read thread, thread dump concept read my this post - Thread and Thread Dump
Make sure to take multiple thread dumps withing a short period of time, for example at least 4 to 6 times with a 5 to 20 seconds of interval
Method - 1
Window:
Press control+break on the console window where you server instance is running
Linux/Unix based systems
First, find out the process id of the your server
OR
Identify the process id and kill the process with
( make sure to this command at least by 4 to 6 times )
Now you will get the thread dump on yout standard output logs file.
Method - 2
Using weblogic.Admin utility, it's deprecated but still available for you to use.
java weblogic.Admin -url t3://Admin_Server_Host:7001 -username weblogic -password weblogic THREAD_DUMP
Using weblogic.Admin utility, it's deprecated but still available for you to use.
To take thread dump of admin server running on port 7001
To take thread dump of manages server running on port 7002
Thread dump will go to the standard out file. you can enable"RedirectStdoutToServerLogEnabled" option if you want to see thread dump on same screen where you are running weblogic.admin utility. or if you want thread dump to go to server log then add -Dweblogic.log.RedirectStdoutToServerLogEnabled=true option in you startup script or from the console ( under server > "server startup" option )
Further, you can use below command to read thread dump from log file
Method - 3
Using WLST
Connect with WLST
run setDomainEnv.[sh][cmd]
java weblogic.WLST
At WLST prompt -
# connect with admin server
connect(‘weblogic’,'webl0gic’,'t3://localhost:7001′)
cd (”Servers’)
ls()
#go inside particular server for which you want to generate thread dump
cd (‘MS1’)
ls()
threadDump()
run setDomainEnv.[sh][cmd]
java weblogic.WLST
At WLST prompt -
# connect with admin server
connect(‘weblogic’,'webl0gic’,'t3://localhost:7001′)
cd (”Servers’)
ls()
#go inside particular server for which you want to generate thread dump
cd (‘MS1’)
ls()
threadDump()
Method - 4
To take it from console
Login to AdminConsole—>Server —> Monitoring —> Threads
See my this post - http://weblogicserveradministration.blogspot.in/2010/10/monitoring-threads-requests-heap-from.html
Using jrockit mission control
See my this post - http://weblogicserveradministration.blogspot.in/2012/10/weblogic-mission-control-diagnostic.html
See my this post - http://weblogicserveradministration.blogspot.in/2012/10/weblogic-mission-control-diagnostic.html
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete