This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to take thread Dump using WLST for Weblogic81

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