Class 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 Statistics

    The 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 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