|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.metrics.codahale_metrics.metrics.core.VirtualMachineMetrics
public class VirtualMachineMetrics
A collection of Java Virtual Machine metrics.
Nested Class Summary | |
---|---|
static class |
VirtualMachineMetrics.BufferPoolStats
The management interface for a buffer pool, for example a pool of direct or mapped
buffers. |
static class |
VirtualMachineMetrics.GarbageCollectorStats
Per-GC statistics. |
Method Summary | |
---|---|
int |
daemonThreadCount()
Returns the number of live daemon threads. |
java.util.Set<java.lang.String> |
deadlockedThreads()
Returns a set of strings describing deadlocked threads, if any are deadlocked. |
double |
fileDescriptorUsage()
Returns the percentage of available file descriptors which are currently in use. |
java.util.Map<java.lang.String,VirtualMachineMetrics.GarbageCollectorStats> |
garbageCollectors()
Returns a map of garbage collector names to garbage collector information. |
java.util.Map<java.lang.String,VirtualMachineMetrics.BufferPoolStats> |
getBufferPoolStats()
|
static VirtualMachineMetrics |
getInstance()
The default instance of VirtualMachineMetrics . |
double |
heapCommitted()
Returns the heap memory committed to the JVM. |
double |
heapInit()
Returns the heap initial memory of the current JVM. |
double |
heapMax()
Returns the heap memory currently used by the current JVM. |
double |
heapUsage()
Returns the percentage of the JVM's heap which is being used. |
double |
heapUsed()
Returns the heap memory currently used by the current JVM. |
java.util.Map<java.lang.String,java.lang.Double> |
memoryPoolUsage()
Returns a map of memory pool names to the percentage of that pool which is being used. |
java.lang.String |
name()
Returns the name of the currently-running jvm. |
double |
nonHeapUsage()
Returns the percentage of the JVM's non-heap memory (e.g., direct buffers) which is being used. |
int |
threadCount()
Returns the number of live threads (includes daemonThreadCount() . |
void |
threadDump(java.io.OutputStream out)
Dumps all of the threads' current information to an output stream. |
java.util.Map<java.lang.Thread.State,java.lang.Double> |
threadStatePercentages()
Returns a map of thread states to the percentage of all threads which are in that state. |
double |
totalCommitted()
Returns the total memory committed to the JVM. |
double |
totalInit()
Returns the total initial memory of the current JVM. |
double |
totalMax()
Returns the total memory currently used by the current JVM. |
double |
totalUsed()
Returns the total memory currently used by the current JVM. |
long |
uptime()
Returns the number of seconds the JVM process has been running. |
java.lang.String |
version()
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 VirtualMachineMetrics getInstance()
VirtualMachineMetrics
.
instance
public double totalInit()
public double totalUsed()
public double totalMax()
public double totalCommitted()
public double heapInit()
public double heapUsed()
public double heapMax()
public double heapCommitted()
public double heapUsage()
public double nonHeapUsage()
public java.util.Map<java.lang.String,java.lang.Double> memoryPoolUsage()
public double fileDescriptorUsage()
NaN
if the running JVM does not have access to this informationpublic java.lang.String version()
public java.lang.String name()
public long uptime()
public int threadCount()
daemonThreadCount()
.
public int daemonThreadCount()
public java.util.Map<java.lang.String,VirtualMachineMetrics.GarbageCollectorStats> garbageCollectors()
public java.util.Set<java.lang.String> deadlockedThreads()
public java.util.Map<java.lang.Thread.State,java.lang.Double> threadStatePercentages()
public void threadDump(java.io.OutputStream out)
out
- an output streampublic java.util.Map<java.lang.String,VirtualMachineMetrics.BufferPoolStats> getBufferPoolStats()
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |