Class GcFreedRatioRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.AbstractRule
-
- org.openjdk.jmc.flightrecorder.rules.jdk.memory.GcFreedRatioRule
-
- All Implemented Interfaces:
IRule
public class GcFreedRatioRule extends AbstractRule
Rule that checks how much memory was freed per second, and compares that to the liveset. Calculations are done in time windows. Rule is designed to only require the GCHeapSummary event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
GcFreedRatioRule.GcInfoHolder
-
Field Summary
Fields Modifier and Type Field Description static TypedPreference<IQuantity>
FEW_GCS_LIMIT
private static TypedPreference<IQuantity>
GC_FREED_PER_SECOND_TO_LIVESET_RATIO_INFO_LIMIT
private static java.lang.String
NEW_PARAGRAPH
private static java.lang.String
SPACE
static TypedPreference<IQuantity>
WINDOW_SIZE
-
Fields inherited from class org.openjdk.jmc.flightrecorder.rules.AbstractRule
evaluationTask
-
-
Constructor Summary
Constructors Constructor Description GcFreedRatioRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private GcFreedRatioRule.GcInfoHolder
getMaxFreedWindow(IItemCollection allItems, IQuantity windowSize, IQuantity slideSize)
protected Result
getResult(IItemCollection items, IPreferenceValueProvider vp)
-
Methods inherited from class org.openjdk.jmc.flightrecorder.rules.AbstractRule
evaluate, getConfigurationAttributes, getId, getName, getTopic
-
-
-
-
Field Detail
-
NEW_PARAGRAPH
private static final java.lang.String NEW_PARAGRAPH
- See Also:
- Constant Field Values
-
SPACE
private static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
GC_FREED_PER_SECOND_TO_LIVESET_RATIO_INFO_LIMIT
private static final TypedPreference<IQuantity> GC_FREED_PER_SECOND_TO_LIVESET_RATIO_INFO_LIMIT
-
WINDOW_SIZE
public static final TypedPreference<IQuantity> WINDOW_SIZE
-
FEW_GCS_LIMIT
public static final TypedPreference<IQuantity> FEW_GCS_LIMIT
-
-
Method Detail
-
getResult
protected Result getResult(IItemCollection items, IPreferenceValueProvider vp)
- Specified by:
getResult
in classAbstractRule
-
getMaxFreedWindow
private GcFreedRatioRule.GcInfoHolder getMaxFreedWindow(IItemCollection allItems, IQuantity windowSize, IQuantity slideSize)
-
-