Package org.glassfish.admin.monitor.jvm
Class JVMGCStatsProvider
- java.lang.Object
-
- org.glassfish.admin.monitor.jvm.JVMGCStatsProvider
-
@AMXMetadata(type="garbage-collector-mon", group="monitoring") @ManagedObject @Description("JVM Garbage Collectors Statistics") public class JVMGCStatsProvider extends Object
Provides the MBean for JVM Garbage Collectors StatisticsThe MBean produced from this is of the format
amx:pp=/mon/server-mon[server],type=garbage-collector-mon,name=jvm/garbage-collectors/PS MarkSweep
and can be enabled by turning the Jvm monitoring level in the admin console to LOW- Since:
- v2
-
-
Constructor Summary
Constructors Constructor Description JVMGCStatsProvider(String gcName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.external.statistics.CountStatistic
getCollectionCount()
Gets the total number of collections that have occurredorg.glassfish.external.statistics.CountStatistic
getCollectionTime()
Gets the approximate accumulated collection elapsed timeString
getGcName()
-
-
-
Constructor Detail
-
JVMGCStatsProvider
public JVMGCStatsProvider(String gcName)
-
-
Method Detail
-
getGcName
public String getGcName()
-
getCollectionCount
@ManagedAttribute(id="collectioncount-count") @Description("total number of collections that have occurred") public org.glassfish.external.statistics.CountStatistic getCollectionCount()
Gets the total number of collections that have occurred- Returns:
- a
CountStatistic
with the number of collections
-
getCollectionTime
@ManagedAttribute(id="collectiontime-count") @Description("approximate accumulated collection elapsed time in milliseconds") public org.glassfish.external.statistics.CountStatistic getCollectionTime()
Gets the approximate accumulated collection elapsed time- Returns:
- a
CountStatistic
with the time in milliseconds
-
-