|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yammer.metrics.core.VirtualMachineMetrics
public class VirtualMachineMetrics
A collection of Java Virtual Machine metrics.
| Nested Class Summary | |
|---|---|
static class |
VirtualMachineMetrics.GarbageCollector
|
| Method Summary | |
|---|---|
static long |
daemonThreadCount()
Returns the number of live daemon threads. |
static Set<String> |
deadlockedThreads()
Returns a set of strings describing deadlocked threads, if any are deadlocked. |
static double |
fileDescriptorUsage()
Returns the percentage of available file descriptors which are currently in use. |
static Map<String,VirtualMachineMetrics.GarbageCollector> |
garbageCollectors()
Returns a map of garbage collector names to garbage collector information. |
static double |
heapUsage()
Returns the percentage of the JVM's heap which is being used. |
static Map<String,Double> |
memoryPoolUsage()
Returns a map of memory pool names to the percentage of that pool which is being used. |
static double |
nonHeapUsage()
Returns the percentage of the JVM's non-heap memory (e.g., direct buffers) which is being used. |
static long |
threadCount()
Returns the number of live threads (includes daemonThreadCount(). |
static void |
threadDump(OutputStream out)
Dumps all of the threads' current information to an output stream. |
static Map<Thread.State,Double> |
threadStatePercentages()
Returns a map of thread states to the percentage of all threads which are in that state. |
static long |
uptime()
Returns the number of seconds the JVM process has been running. |
static String |
vmName()
Returns the name of the currently-running jvm. |
static String |
vmVersion()
Returns the version of the currently-running jvm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double heapUsage()
public static double nonHeapUsage()
public static Map<String,Double> memoryPoolUsage()
public static double fileDescriptorUsage()
NaN if the running JVM does not have access to this informationpublic static String vmVersion()
public static String vmName()
public static long uptime()
public static long threadCount()
daemonThreadCount().
public static long daemonThreadCount()
public static Map<String,VirtualMachineMetrics.GarbageCollector> garbageCollectors()
public static Set<String> deadlockedThreads()
public static Map<Thread.State,Double> threadStatePercentages()
public static void threadDump(OutputStream out)
throws IOException
out - an output stream
IOException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||