com.massimo.utils
Class DebugDump

java.lang.Object
  extended by com.massimo.utils.DebugDump

public final class DebugDump
extends Object

Dump useful information about the JVM: threads, classes, JVM memory, properties


Method Summary
static void classDump(PrintStream out, Class clazz)
           
static void classesDump(PrintStream out)
          Try to get the private field Vector classes from the ClassLoader.
protected static ThreadGroup findRootThreadGroup()
           
static void jvmStateDump(PrintStream out)
           
static void systemPropertiesDump(PrintStream out)
           
protected static void threadDump(PrintStream out, Thread t, String indent)
           
protected static void threadGroupDump(PrintStream out, ThreadGroup tg, String indent)
           
static void threadStateDump(PrintStream out)
           
static void writeMap(Map properties, PrintStream out)
          Sort and write the properties to out.
static void writeProperties(Properties properties, PrintStream out)
          Sort and write the properties to out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

classDump

public static void classDump(PrintStream out,
                             Class clazz)

classesDump

public static void classesDump(PrintStream out)
Try to get the private field Vector classes from the ClassLoader.

Parameters:
out - Dump the classes to this stream

findRootThreadGroup

protected static ThreadGroup findRootThreadGroup()

jvmStateDump

public static void jvmStateDump(PrintStream out)

systemPropertiesDump

public static void systemPropertiesDump(PrintStream out)

threadDump

protected static void threadDump(PrintStream out,
                                 Thread t,
                                 String indent)

threadGroupDump

protected static void threadGroupDump(PrintStream out,
                                      ThreadGroup tg,
                                      String indent)

threadStateDump

public static void threadStateDump(PrintStream out)

writeMap

public static void writeMap(Map properties,
                            PrintStream out)
Sort and write the properties to out.

Parameters:
properties -
out -

writeProperties

public static void writeProperties(Properties properties,
                                   PrintStream out)
Sort and write the properties to out. N.B. Must use the propertyNames() Enumeration to get the default properties. The Map(Map) constructor would NOT include the separate Properties.defaults Hashtable.

Parameters:
properties -
out -