Package com.ibm.websphere.monitor.jmx
Interface JvmMXBean
- 
 public interface JvmMXBeanManagement interface for the MBean "WebSphere:type=JvmStats". The Liberty profile makes this MBean available in its platform MBean server when the monitor-1.0 feature is enabled to allow monitoring of the JVM process. This interface can be used to request a proxy object via theJMX.newMXBeanProxy(javax.management.MBeanServerConnection, javax.management.ObjectName, java.lang.Class<T>)method. This MXBean is responsible for reporting performance of JVM. The following attributes are available for JVM.
 
 Heap Information- FreeMemory
- UsedMemory
- Heap
 
 CPU Information- ProcessCPU
 
 Garbage Collection Information- GCCount
- GCTime
 
 JVM Information- UpTime
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetFreeMemory()Retrieves the value of the read-only attribute FreeMemory, which is the size of unused heap space in bytes.longgetGcCount()Retrieves the value of the read-only attribute GcCount, which is the number of times garbage collection has been triggered since JVM start.longgetGcTime()Retrieves the value of the read-only attribute GcTime, which is the total garbage collection time in milliseconds.longgetHeap()Retrieves the value of the read-only attribute Heap, which is the total size of the heap space in bytes.doublegetProcessCPU()Retrieves the value of the read-only attribute ProcessCPU, which is the CPU time consumed by JVM.longgetUpTime()Retrieves the value of the read-only attribute UpTime, which is the time in milliseconds since JVM has started.longgetUsedMemory()Retrieves the value of the read-only attribute UsedMemory, which is the size of the used heap space in bytes.
 
- 
- 
- 
Method Detail- 
getUsedMemorylong getUsedMemory() Retrieves the value of the read-only attribute UsedMemory, which is the size of the used heap space in bytes.- Returns:
- used memory
 
 - 
getFreeMemorylong getFreeMemory() Retrieves the value of the read-only attribute FreeMemory, which is the size of unused heap space in bytes.- Returns:
- free memory
 
 - 
getHeaplong getHeap() Retrieves the value of the read-only attribute Heap, which is the total size of the heap space in bytes.- Returns:
- heap
 
 - 
getUpTimelong getUpTime() Retrieves the value of the read-only attribute UpTime, which is the time in milliseconds since JVM has started.- Returns:
- up time
 
 - 
getProcessCPUdouble getProcessCPU() Retrieves the value of the read-only attribute ProcessCPU, which is the CPU time consumed by JVM.- Returns:
- process CPU, or -1 if CPU time is not supported for this JVM
 
 - 
getGcCountlong getGcCount() Retrieves the value of the read-only attribute GcCount, which is the number of times garbage collection has been triggered since JVM start.- Returns:
- gc count
 
 - 
getGcTimelong getGcTime() Retrieves the value of the read-only attribute GcTime, which is the total garbage collection time in milliseconds. This is an accumulated value.- Returns:
- gc time
 
 
- 
 
-