Class GCPreferences
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.gc.GCPreferences
This class allows applications to retrieve or set various preferences that
are relevant to the garbage collection data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the threshold above which a warning is given for excessive compaction.intGets the threshold above which a warning is given for high occupancy.intGets the threshold below which a warning is given for low occupancy.intGets the threshold above which a warning is given for long pauses.intGets the threshold above which a warning is given for excessive system garbage collections.voidsetCompactionPercentageThreshold(int value) Sets the threshold above which a warning is given for excessive compaction.voidInitializes the Health Center preferences to their default values.voidsetHighOccupancyThreshold(int value) Sets the threshold above which a warning is given for high occupancy.voidsetLowOccupancyThreshold(int value) Sets the threshold below which a warning is given for low occupancy.voidsetPauseLengthThreshold(int ms) Sets the threshold above which a warning is given for long pauses.voidsetSystemGCPercentageThreshold(int value) Sets the threshold above which a warning is given for excessive system garbage collections.
-
Constructor Details
-
GCPreferences
public GCPreferences()Initializes the default set of preferences.
-
-
Method Details
-
getLowOccupancyThreshold
public int getLowOccupancyThreshold()Gets the threshold below which a warning is given for low occupancy.- Returns:
- the lower threshold, as a percentage of used heap.
-
getHighOccupancyThreshold
public int getHighOccupancyThreshold()Gets the threshold above which a warning is given for high occupancy.- Returns:
- the upper threshold, as a percentage of used heap.
-
getPauseLengthThreshold
public int getPauseLengthThreshold()Gets the threshold above which a warning is given for long pauses.- Returns:
- the pause length threshold, in milliseconds.
-
getCompactionPercentageThreshold
public int getCompactionPercentageThreshold()Gets the threshold above which a warning is given for excessive compaction.- Returns:
- the compaction threshold, as a percentage of garbage collections.
-
getSystemGCPercentageThreshold
public int getSystemGCPercentageThreshold()Gets the threshold above which a warning is given for excessive system garbage collections.- Returns:
- the system garbage collection threshold, as a percentage of garbage collections.
-
setLowOccupancyThreshold
public void setLowOccupancyThreshold(int value) Sets the threshold below which a warning is given for low occupancy.- Parameters:
value- the lower threshold, as a percentage of used heap.
-
setHighOccupancyThreshold
public void setHighOccupancyThreshold(int value) Sets the threshold above which a warning is given for high occupancy.- Parameters:
value- the upper threshold, as a percentage of used heap.
-
setPauseLengthThreshold
public void setPauseLengthThreshold(int ms) Sets the threshold above which a warning is given for long pauses.- Parameters:
ms- the pause length threshold, in milliseconds.
-
setCompactionPercentageThreshold
public void setCompactionPercentageThreshold(int value) Sets the threshold above which a warning is given for excessive compaction.- Parameters:
value- the compaction threshold, as a percentage of garbage collections.
-
setSystemGCPercentageThreshold
public void setSystemGCPercentageThreshold(int value) Sets the threshold above which a warning is given for excessive system garbage collections.- Parameters:
value- the system garbage collection threshold, as a percentage of garbage collections.
-
setDefaults
public void setDefaults()Initializes the Health Center preferences to their default values.
-