| Modifier and Type | Field and Description |
|---|---|
| private static final ClassLoadingMXBean | |
| private static final CompilationMXBean | |
| private static final String | |
| private static final List | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Log | |
| private static final PlatformLoggingMXBean | |
| private static final List | |
| private static final MemoryMXBean | |
| private static final List | |
| private static final OperatingSystemMXBean | |
| private static final String | |
| private static final RuntimeMXBean | |
| private static final StringManager | |
| private static final ThreadMXBean | |
| private static final SimpleDateFormat | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: a deadlock message and the formatted thread dump of the deadlocked threadsCheck if any threads are deadlocked. |
| private static String | Returns: the formatted contentsa text prefix used in formatting name, MemoryUsage the MemoryUsage object to format usage)Format contents of a MemoryUsage object. |
| public static void | |
| private static String | Returns: the formatted thread dumpthe ThreadInfo describing the thread ti)Formats the thread dump for one thread. |
| private static String | Returns: the formatted thread dumpthe ThreadInfo array describing the thread list tinfos)Formats the thread dump for a list of threads. |
| public static String | |
| public static String | Returns: the formatted JVM thread dumplist of locales to use requestedLocales)Retrieves a formatted JVM thread dump. |
| public static String | Returns: the formatted JVM thread dumpthe StringManager to use requestedSm)Retrieve a JVM thread dump formatted using the given StringManager. |
| private static String | Returns: the formatted thread dump headerthe ThreadInfo describing the thread ti)Formats the thread dump header for one thread. |
| public static String | |
| public static String | Returns: the formatted JVM information textlist of locales to use requestedLocales)Retrieves a formatted JVM information text. |
| public static String | Returns: the formatted JVM information textthe StringManager to use requestedSm)Retrieve a JVM information text formatted using the given StringManager. |
| public static boolean | Returns: true if thread contention monitoring is enabledCheck whether thread contention monitoring is enabled. |
| public static boolean | Returns: true if thread cpu time measurement is enabledCheck whether thread cpu time measurement is enabled. |
| public static void | |
| public static void | resetPeakUsage(String
name of the MemoryPoolMXBean or "all" name)Reset peak memory usage data in MemoryPoolMXBean |
| public static boolean | Returns: true if setting the threshold succeededname of the MemoryPoolMXBean name, long the collection threshold to set threshold)Set collection usage threshold in MemoryPoolMXBean |
| public static void | setLoggerLevel(String
the name of the logger loggerName, String the level to set levelName)Set logger level |
| public static void | setThreadContentionMonitoringEnabled(boolean
whether to enable thread contention monitoring enable)Enable or disable thread contention monitoring via the ThreadMxMXBean. |
| public static void | setThreadCpuTimeEnabled(boolean
whether to enable thread cpu time measurement enable)Enable or disable thread cpu time measurement via the ThreadMxMXBean. |
| public static boolean | Returns: true if setting the threshold succeededname of the MemoryPoolMXBean name, long the threshold to set threshold)Set usage threshold in MemoryPoolMXBean |
| public static void | setVerboseClassLoading(boolean
whether to enable verbose class loading verbose)Set verbose class loading |
| public static void | setVerboseGarbageCollection(boolean
whether to enable verbose gc logging verbose)Set verbose garbage collection logging |
| classLoadingMXBean | back to summary |
|---|---|
| private static final ClassLoadingMXBean classLoadingMXBean | |
| compilationMXBean | back to summary |
|---|---|
| private static final CompilationMXBean compilationMXBean | |
| CRLF | back to summary |
|---|---|
| private static final String CRLF | |
| garbageCollectorMXBeans | back to summary |
|---|---|
| private static final List<GarbageCollectorMXBean> garbageCollectorMXBeans | |
| INDENT1 | back to summary |
|---|---|
| private static final String INDENT1 | |
| INDENT2 | back to summary |
|---|---|
| private static final String INDENT2 | |
| INDENT3 | back to summary |
|---|---|
| private static final String INDENT3 | |
| log | back to summary |
|---|---|
| private static final Log log | |
| loggingMXBean | back to summary |
|---|---|
| private static final PlatformLoggingMXBean loggingMXBean | |
| memoryManagerMXBeans | back to summary |
|---|---|
| private static final List<MemoryManagerMXBean> memoryManagerMXBeans | |
| memoryMXBean | back to summary |
|---|---|
| private static final MemoryMXBean memoryMXBean | |
| memoryPoolMXBeans | back to summary |
|---|---|
| private static final List<MemoryPoolMXBean> memoryPoolMXBeans | |
| operatingSystemMXBean | back to summary |
|---|---|
| private static final OperatingSystemMXBean operatingSystemMXBean | |
| PACKAGE | back to summary |
|---|---|
| private static final String PACKAGE | |
| runtimeMXBean | back to summary |
|---|---|
| private static final RuntimeMXBean runtimeMXBean | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| threadMXBean | back to summary |
|---|---|
| private static final ThreadMXBean threadMXBean | |
| timeformat | back to summary |
|---|---|
| private static final SimpleDateFormat timeformat | |
| vminfoSystemProperty | back to summary |
|---|---|
| private static final String vminfoSystemProperty | |
| Diagnostics | back to summary |
|---|---|
| public Diagnostics() | |
| findDeadlock | back to summary |
|---|---|
| public static String findDeadlock() Check if any threads are deadlocked. If any, print the thread dump for those threads.
| |
| formatMemoryUsage | back to summary |
|---|---|
| private static String formatMemoryUsage(String name, MemoryUsage usage) Format contents of a MemoryUsage object.
| |
| gc | back to summary |
|---|---|
| public static void gc() Initiate garbage collection via MX Bean | |
| getThreadDump | back to summary |
|---|---|
| private static String getThreadDump(ThreadInfo ti) Formats the thread dump for one thread.
| |
| getThreadDump | back to summary |
|---|---|
| private static String getThreadDump(ThreadInfo[] tinfos) Formats the thread dump for a list of threads.
| |
| getThreadDump | back to summary |
|---|---|
| public static String getThreadDump() Retrieves a formatted JVM thread dump. The default StringManager will be used.
| |
| getThreadDump | back to summary |
|---|---|
| public static String getThreadDump(Enumeration<Locale> requestedLocales) Retrieves a formatted JVM thread dump. The given list of locales will be used to retrieve a StringManager.
| |
| getThreadDump | back to summary |
|---|---|
| public static String getThreadDump(StringManager requestedSm) Retrieve a JVM thread dump formatted using the given StringManager.
| |
| getThreadDumpHeader | back to summary |
|---|---|
| private static String getThreadDumpHeader(ThreadInfo ti) Formats the thread dump header for one thread.
| |
| getVMInfo | back to summary |
|---|---|
| public static String getVMInfo() Retrieves a formatted JVM information text. The default StringManager will be used.
| |
| getVMInfo | back to summary |
|---|---|
| public static String getVMInfo(Enumeration<Locale> requestedLocales) Retrieves a formatted JVM information text. The given list of locales will be used to retrieve a StringManager.
| |
| getVMInfo | back to summary |
|---|---|
| public static String getVMInfo(StringManager requestedSm) Retrieve a JVM information text formatted using the given StringManager.
| |
| isThreadContentionMonitoringEnabled | back to summary |
|---|---|
| public static boolean isThreadContentionMonitoringEnabled() Check whether thread contention monitoring is enabled.
| |
| isThreadCpuTimeEnabled | back to summary |
|---|---|
| public static boolean isThreadCpuTimeEnabled() Check whether thread cpu time measurement is enabled.
| |
| resetPeakThreadCount | back to summary |
|---|---|
| public static void resetPeakThreadCount() Reset peak thread count in ThreadMXBean | |
| resetPeakUsage | back to summary |
|---|---|
| public static void resetPeakUsage(String name) Reset peak memory usage data in MemoryPoolMXBean
| |
| setCollectionUsageThreshold | back to summary |
|---|---|
| public static boolean setCollectionUsageThreshold(String name, long threshold) Set collection usage threshold in MemoryPoolMXBean
| |
| setLoggerLevel | back to summary |
|---|---|
| public static void setLoggerLevel(String loggerName, String levelName) Set logger level | |
| setThreadContentionMonitoringEnabled | back to summary |
|---|---|
| public static void setThreadContentionMonitoringEnabled(boolean enable) Enable or disable thread contention monitoring via the ThreadMxMXBean.
| |
| setThreadCpuTimeEnabled | back to summary |
|---|---|
| public static void setThreadCpuTimeEnabled(boolean enable) Enable or disable thread cpu time measurement via the ThreadMxMXBean.
| |
| setUsageThreshold | back to summary |
|---|---|
| public static boolean setUsageThreshold(String name, long threshold) Set usage threshold in MemoryPoolMXBean
| |
| setVerboseClassLoading | back to summary |
|---|---|
| public static void setVerboseClassLoading(boolean verbose) Set verbose class loading
| |
| setVerboseGarbageCollection | back to summary |
|---|---|
| public static void setVerboseGarbageCollection(boolean verbose) Set verbose garbage collection logging
| |