File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes How to take thread Dump using WLST for Weblogic81 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to take thread Dump using WLST for Weblogic81" Watch "How to take thread Dump using WLST for Weblogic81" New topic
Author

How to take thread Dump using WLST for Weblogic81

shivakumar venkata
Greenhorn

Joined: Nov 08, 2007
Posts: 2
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
 
subject: How to take thread Dump using WLST for Weblogic81