WLST script to take thread dumps

Quick wlst script to take thread dumps inside the running container…

connect ('weblogic','welcome1','t3://localhost:7001')

counter = 0
sleepTime = 5000

for counter in range(10): 
  serverName = 'AdminServer'

  java.lang.Thread.sleep(sleepTime)
  fileName = 'dump' + serverName + counter + '.dmp'
  threadDump('true', fileName, serverName)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.