• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to take thread Dump using WLST for Weblogic81

 
shivakumar venkata
Greenhorn
Posts: 2
  • 0
  • 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 weblogic.management.scripting.utils.WLSTInterpreter;
import org.python.util.InteractiveInterpreter;
public class EmbeddedWLST {

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

}

private static void connect()
{
StringBuffer buffer = new StringBuffer();
buffer.append("connect('username','password','t3://host ort')");
interpreter.exec(buffer.toString());
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();
connect();

}

}//End of WLST

Please Advise.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic