Class DumpAgent


  • public class DumpAgent
    extends java.lang.Object
    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

      Fields 
      Modifier and Type Field Description
      static java.lang.String HEAP  
      static java.lang.String HPROF  
      static java.lang.String INFO_SEPARATOR  
      static java.lang.String JAVA  
      static java.lang.String SEPARATOR  
      static java.lang.String SYSTEM  
    • Constructor Summary

      Constructors 
      Constructor Description
      DumpAgent()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void agentmain​(java.lang.String arg)
      Generate a dump on this machine
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DumpAgent

        public DumpAgent()
    • Method Detail

      • agentmain

        public static void agentmain​(java.lang.String arg)
                              throws java.lang.ClassNotFoundException,
                                     java.lang.NoSuchMethodException,
                                     java.lang.reflect.InvocationTargetException,
                                     java.lang.IllegalAccessException,
                                     java.lang.InstantiationException,
                                     javax.management.MalformedObjectNameException,
                                     javax.management.InstanceNotFoundException,
                                     javax.management.ReflectionException,
                                     javax.management.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:
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        javax.management.MalformedObjectNameException
        javax.management.InstanceNotFoundException
        javax.management.ReflectionException
        javax.management.MBeanException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.ClassNotFoundException,
                                java.lang.NoSuchMethodException,
                                java.lang.reflect.InvocationTargetException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                javax.management.MalformedObjectNameException,
                                javax.management.InstanceNotFoundException,
                                javax.management.ReflectionException,
                                javax.management.MBeanException
        Throws:
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        javax.management.MalformedObjectNameException
        javax.management.InstanceNotFoundException
        javax.management.ReflectionException
        javax.management.MBeanException