Python script to generate thread dump as below:
Step 1: Create a script vi ThreadDump.py in Unix terminal and copy paste the below snippet
$ vi ThreadDump.py
connect('weblogic','weblogic','t3://localhost:7001')
cd('Servers')
cd('AdminServer')
threadDump(writeToFile='true',fileName='ThreadDump.txt')
disconnect()
exit()
Edit the username, password, Adminserver URL as per your environment
Step 2: Now run setWLSEnv.sh script to setup the classpath & path
/u01/app/oracle/product/fmw/wlserver_10.3/server/bin
$ ../setWLSEnv.sh
Step 3 : Finally run the below command to generate the thread dump using WLST
No comments:
Post a Comment