public class DumpAgent extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HEAP |
static String |
HPROF |
static String |
INFO_SEPARATOR |
static String |
JAVA |
static String |
SEPARATOR |
static String |
SYSTEM |
Constructor and Description |
---|
DumpAgent() |
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(String arg)
Generate a dump on this machine
|
static void |
main(String[] args) |
public static final String SEPARATOR
public static final String SYSTEM
public static final String HEAP
public static final String JAVA
public static final String HPROF
public static final String INFO_SEPARATOR
public static void agentmain(String arg) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException, MalformedObjectNameException, InstanceNotFoundException, ReflectionException, MBeanException
arg
- E.g. "system", "heap+java", "java"
true live objects only
with a path separator separating possible file names
Throw a exception if there is a problem so that the other end receives an AgentInitializationException.ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
InstantiationException
MalformedObjectNameException
InstanceNotFoundException
ReflectionException
MBeanException
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException, MalformedObjectNameException, InstanceNotFoundException, ReflectionException, MBeanException