Package wt.jmx.core.mbeans
Interface GarbageCollectionMonitorMBean
- All Superinterfaces:
SelfEmailingMBean
- All Known Implementing Classes:
GarbageCollectionMonitor
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringType of notification produced when PercentTimeSpentInGCThreshold is initially exceeded
Supported API: truestatic final StringType of notification produced when PercentTimeSpentInGCThreshold is no longer exceeded
Supported API: truestatic final StringType of notification produced when PercentTimeSpentInGCThreshold is still exceeded
Supported API: true -
Method Summary
Modifier and TypeMethodDescriptiondoublePercentage of time spent performing garbage collection since JVM startup
Supported API: truedoubleOverall time spent performing garbage collection since JVM startup in seconds
Supported API: truedoubleThreshold percentage of time spent in GC during an interval above which a notification will be issued
Supported API: trueData on time spent performing garbage collection during recent time interval
Supported API: trueintDuration of recent time interval in seconds
Supported API: truedoublePercentage of time spent performing garbage collection during recent time interval
Supported API: truevoidsetPercentTimeSpentInGCThreshold(double percentTimeSpentInGCThreshold) Threshold percentage of time spent in GC during an interval above which a notification will be issued
Supported API: truevoidsetRecentIntervalSeconds(int recentIntervalSeconds) Duration of recent time interval in seconds
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Field Details
-
GC_THRESHOLD_EXCEEDED_INITIAL_NOTIF_TYPE
Type of notification produced when PercentTimeSpentInGCThreshold is initially exceeded
Supported API: true -
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
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
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
-