Package org.glassfish.admin.monitor.jvm
Class JVMMemoryStatsProvider
- java.lang.Object
-
- org.glassfish.admin.monitor.jvm.JVMMemoryStatsProvider
-
@AMXMetadata(type="memory-mon", group="monitoring") @ManagedObject @Description("JVM Memory Statistics") public class JVMMemoryStatsProvider extends Object
Class providing the MBean for JVM memory statisticsThe MBean will be of the format
amx:pp=/mon/server-mon[server],type=memory-mon,name=jvm/memory
and can be enabled by turning the Jvm monitoring level in the admin console to LOW- Since:
- v2
-
-
Constructor Summary
Constructors Constructor Description JVMMemoryStatsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.external.statistics.CountStatistic
getCommittedHeap()
Gets the amount of memory that is committed for the Java virtual machine to useorg.glassfish.external.statistics.CountStatistic
getCommittedNonHeap()
Gets the amount of memory in bytes that is committed for the Java virtual machine to useorg.glassfish.external.statistics.CountStatistic
getHeapUsage()
org.glassfish.external.statistics.CountStatistic
getInitHeap()
Gets the amount of memory that the Java virtual machine initially requests from the operating system for memory managementorg.glassfish.external.statistics.CountStatistic
getInitNonHeap()
Gets the amount of memory that the Java virtual machine initially requests from the operating system for memory managementorg.glassfish.external.statistics.CountStatistic
getMaxHeap()
Gets the maximum amount of memory that can be used for memory managementorg.glassfish.external.statistics.CountStatistic
getMaxNonHeap()
Gets the maximum amount of memory that can be used for memory managementorg.glassfish.external.statistics.CountStatistic
getObjectPendingFinalizationCount()
Gets the approximate number of objects for which finalization is pendingorg.glassfish.external.statistics.CountStatistic
getUsedHeap()
Gets the amount of used memoryorg.glassfish.external.statistics.CountStatistic
getUsedNonHeap()
Gets the amount of used memory
-
-
-
Method Detail
-
getCommittedHeap
@ManagedAttribute(id="committedheapsize-count") @Description("amount of memory in bytes that is committed for the Java virtual machine to use") public org.glassfish.external.statistics.CountStatistic getCommittedHeap()
Gets the amount of memory that is committed for the Java virtual machine to use- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getInitHeap
@ManagedAttribute(id="initheapsize-count") @Description("amount of memory in bytes that the Java virtual machine initially requests from the operating system for memory management") public org.glassfish.external.statistics.CountStatistic getInitHeap()
Gets the amount of memory that the Java virtual machine initially requests from the operating system for memory management- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getMaxHeap
@ManagedAttribute(id="maxheapsize-count") @Description("maximum amount of memory in bytes that can be used for memory management") public org.glassfish.external.statistics.CountStatistic getMaxHeap()
Gets the maximum amount of memory that can be used for memory management- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getUsedHeap
@ManagedAttribute(id="usedheapsize-count") @Description("amount of used memory in bytes") public org.glassfish.external.statistics.CountStatistic getUsedHeap()
Gets the amount of used memory- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getCommittedNonHeap
@ManagedAttribute(id="committednonheapsize-count") @Description("amount of memory in bytes that is committed for the Java virtual machine to use") public org.glassfish.external.statistics.CountStatistic getCommittedNonHeap()
Gets the amount of memory in bytes that is committed for the Java virtual machine to use- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getInitNonHeap
@ManagedAttribute(id="initnonheapsize-count") @Description("amount of memory in bytes that the Java virtual machine initially requests from the operating system for memory management") public org.glassfish.external.statistics.CountStatistic getInitNonHeap()
Gets the amount of memory that the Java virtual machine initially requests from the operating system for memory management- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getMaxNonHeap
@ManagedAttribute(id="maxnonheapsize-count") @Description("maximum amount of memory in bytes that can be used for memory management") public org.glassfish.external.statistics.CountStatistic getMaxNonHeap()
Gets the maximum amount of memory that can be used for memory management- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getUsedNonHeap
@ManagedAttribute(id="usednonheapsize-count") @Description("amount of used memory in bytes") public org.glassfish.external.statistics.CountStatistic getUsedNonHeap()
Gets the amount of used memory- Returns:
- a
CountStatistic
with the amount of memory in bytes
-
getObjectPendingFinalizationCount
@ManagedAttribute(id="objectpendingfinalizationcount-count") @Description("approximate number of objects for which finalization is pending") public org.glassfish.external.statistics.CountStatistic getObjectPendingFinalizationCount()
Gets the approximate number of objects for which finalization is pending- Returns:
- a
CountStatistic
with the number of objects
-
getHeapUsage
@ManagedAttribute(id="heapusage") @Description("Percent of total heap that is already used") public org.glassfish.external.statistics.CountStatistic getHeapUsage()
-
-