Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to take thread Dump using WLST for Weblogic81  RSS feed

shivakumar venkata
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

Please tell me how to take THREAD DUMP using WLST for Weblogic81 SP4 version.

I am getting error when I execute �threadDump()� in Weblogic81 SP4 (WLST) where as it works fine with Weblogic9.2 version.

Actual Requirement : My java code will collect idle thread runtime information (using JMX) and subsequently invokes WLST code (Embedded Mode) for collecting the thread dumps. PFB the snap shot of the code I am using .

import java.util.*;
import org.python.util.InteractiveInterpreter;
public class EmbeddedWLST {

static InteractiveInterpreter interpreter = null;
interpreter = new WLSTInterpreter();


private static void connect()
StringBuffer buffer = new StringBuffer();
buffer.append("connect('username','password','t3://host ort')");
System.out.println("Taking Thread Dump Now");
interpreter.exec("threadDump()"); // It works for WL9.2 but not for WL8.1

public static void main(String[] args)
new EmbeddedWLST();


}//End of WLST

Please Advise.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!