Interface GarbageCollectionMonitorMBean

All Superinterfaces:
SelfEmailingMBean
All Known Implementing Classes:
GarbageCollectionMonitor

public interface GarbageCollectionMonitorMBean extends SelfEmailingMBean
Provides simple interface to monitor percentage of time recently spent in garbage collection

The MBeans built into Java 5 provide the necessary statistics, but not notifications, nor the necessary derived statistic -- garbage collection as a percentage of overall time.

Supported API: true

Extendable: true

  • Field Details

    • GC_THRESHOLD_EXCEEDED_INITIAL_NOTIF_TYPE

      static final String GC_THRESHOLD_EXCEEDED_INITIAL_NOTIF_TYPE
      Type of notification produced when PercentTimeSpentInGCThreshold is initially exceeded

      Supported API: true
    • GC_THRESHOLD_EXCEEDED_STILL_NOTIF_TYPE

      static final String GC_THRESHOLD_EXCEEDED_STILL_NOTIF_TYPE
      Type of notification produced when PercentTimeSpentInGCThreshold is still exceeded

      Supported API: true
    • GC_THRESHOLD_EXCEEDED_NO_LONGER_NOTIF_TYPE

      static final String GC_THRESHOLD_EXCEEDED_NO_LONGER_NOTIF_TYPE
      Type of notification produced when PercentTimeSpentInGCThreshold is no longer exceeded

      Supported API: true
  • Method Details

    • getOverallSecondsSpentInGC

      double getOverallSecondsSpentInGC()
      Overall time spent performing garbage collection since JVM startup in seconds

      Supported API: true
    • getOverallPercentTimeSpentInGC

      double getOverallPercentTimeSpentInGC()
      Percentage of time spent performing garbage collection since JVM startup

      Supported API: true
    • getRecentPercentTimeSpentInGC

      double getRecentPercentTimeSpentInGC()
      Percentage of time spent performing garbage collection during recent time interval

      Supported API: true
    • getRecentGCData

      CompositeData getRecentGCData() throws OpenDataException
      Data on time spent performing garbage collection during recent time interval

      Supported API: true
      Throws:
      OpenDataException
    • getRecentIntervalSeconds

      int getRecentIntervalSeconds()
      Duration of recent time interval in seconds

      Supported API: true
    • setRecentIntervalSeconds

      void setRecentIntervalSeconds(int recentIntervalSeconds)
      Duration of recent time interval in seconds

      Supported API: true
    • getPercentTimeSpentInGCThreshold

      double getPercentTimeSpentInGCThreshold()
      Threshold percentage of time spent in GC during an interval above which a notification will be issued

      Supported API: true
    • setPercentTimeSpentInGCThreshold

      void setPercentTimeSpentInGCThreshold(double percentTimeSpentInGCThreshold)
      Threshold percentage of time spent in GC during an interval above which a notification will be issued

      Supported API: true