public class JVMMetrics
extends java.lang.Object
Constructor and Description |
---|
JVMMetrics(long gcCount,
long gcTimeMillis,
long initMemory,
long committedMemory,
long usedMemory,
long maxMemory,
int totalThreads)
This constructor is to be used by internal JMX framework only.
|
Modifier and Type | Method and Description |
---|---|
long |
getCommittedMemory()
Returns the current number of megabytes of memory allocated.
|
long |
getGcCount()
Returns the number of times garbage collection has occured.
|
long |
getGcTimeMillis()
Returns the amount of time (in milliseconds) spent on garbage collection.
|
long |
getInitMemory()
Returns the initial number of megabytes of memory requested from the operating system.
|
long |
getMaxMemory()
Returns the maximum number of megabytes of memory available from the operating system.
|
int |
getTotalThreads()
Returns the number of threads in use.
|
long |
getUsedMemory()
Returns the current number of megabytes of memory being used.
|
java.lang.String |
toString()
String representation of JVMMetrics
|
@ConstructorProperties(value={"gcCount","gcTimeMillis","initMemory","committedMemory","usedMemory","maxMemory","totalThreads"}) public JVMMetrics(long gcCount, long gcTimeMillis, long initMemory, long committedMemory, long usedMemory, long maxMemory, int totalThreads)
public long getGcCount()
public long getGcTimeMillis()
public long getInitMemory()
public long getCommittedMemory()
public long getUsedMemory()
public long getMaxMemory()
public int getTotalThreads()
public java.lang.String toString()
toString
in class java.lang.Object