Taking Thread Dump:
1)
Syntax:
kill -3 <ProcessID>
The Output of the Thread
Dump will be generated in the Server STDOUT fie
2) Simplest option to take
Thread Dump is:
Login to AdminConsole—>Server
—> Monitoring —> Threads
3) Through WLST you need to
write the WLST script like “AdminThreadDump.py”
In this case you will see
the Thread Dumps on the Same Shell prompt….
Not need to look into the
Server STDOUT
connect('weblogic','weblogic','t3://localhost:7001')
cd ('Servers')
ls()
cd ('AdminServer')
ls()
threadDump()
cd('..')
cd('ManagedServerOne')
threadDump()
Now open a command Shell and
then run the “setWLSEnv.sh”
then run the WLST script
like:
java weblogic.WLST
AdminThreadDump.py
or
java weblogic.WLST
/opt/bea/MyScripts/AdminThreadDump.py
No comments:
Post a Comment