public interface JvmMXBean
javax.management.JMX#newMXBeanProxy
method.
This MXBean is responsible for reporting performance of JVM.
The following attributes are available for JVM.
Modifier and Type | Method and Description |
---|---|
long |
getFreeMemory()
Retrieves the value of the read-only attribute FreeMemory, which is the size of unused heap space in bytes.
|
long |
getGcCount()
Retrieves the value of the read-only attribute GcCount, which is the number of times garbage collection has been triggered since JVM start.
|
long |
getGcTime()
Retrieves the value of the read-only attribute GcTime, which is the total garbage collection time in milliseconds.
|
long |
getHeap()
Retrieves the value of the read-only attribute Heap, which is the total size of the heap space in bytes.
|
double |
getProcessCPU()
Retrieves the value of the read-only attribute ProcessCPU, which is the CPU time consumed by JVM.
|
long |
getUpTime()
Retrieves the value of the read-only attribute UpTime, which is the time in milliseconds since JVM has started.
|
long |
getUsedMemory()
Retrieves the value of the read-only attribute UsedMemory, which is the size of the used heap space in bytes.
|
long getUsedMemory()
long getFreeMemory()
long getHeap()
long getUpTime()
double getProcessCPU()
long getGcCount()
long getGcTime()