Package org.eclipse.mat.ibmvm.agent
Class DumpAgent
java.lang.Object
org.eclipse.mat.ibmvm.agent.DumpAgent
Helper class which is loaded into the target VM to create a dump.
This class requires an IBM VM to run, but uses
reflection so that it can be compiled with any Java compiler.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
SEPARATOR
- See Also:
-
SYSTEM
- See Also:
-
HEAP
- See Also:
-
JAVA
- See Also:
-
HPROF
- See Also:
-
INFO_SEPARATOR
-
-
Constructor Details
-
DumpAgent
public DumpAgent()
-
-
Method Details
-
agentmain
public static void agentmain(String arg) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException, MalformedObjectNameException, InstanceNotFoundException, ReflectionException, MBeanException Generate a dump on this machine- Parameters:
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.- Throws:
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
InstantiationException
MalformedObjectNameException
InstanceNotFoundException
ReflectionException
MBeanException
-
main
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException, MalformedObjectNameException, InstanceNotFoundException, ReflectionException, MBeanException
-