Class DynamicMemoryResizer
java.lang.Object
org.infinispan.container.impl.DynamicMemoryResizer
- All Implemented Interfaces:
MemoryMonitor.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked after every GC event, regardless of alert state.voidInvoked when the ratio of time spent in GC over the rolling pressure window exceeds the configured GC pressure threshold.voidInvoked when a GC event causes the rolling pressure ratio to drop back below the threshold, following a priorMemoryMonitor.Listener.onGcPressureHigh()notification.voidInvoked when old generation heap usage exceeds the configured memory threshold.voidInvoked after a GC cycle when old generation usage has dropped back below the memory threshold, following a priorMemoryMonitor.Listener.onMemoryLow()notification.
-
Constructor Details
-
DynamicMemoryResizer
public DynamicMemoryResizer()
-
-
Method Details
-
onMemoryLow
public void onMemoryLow()Description copied from interface:MemoryMonitor.ListenerInvoked when old generation heap usage exceeds the configured memory threshold. Fires once when the threshold is first crossed; subsequent JMX notifications while already in the low memory state are suppressed.- Specified by:
onMemoryLowin interfaceMemoryMonitor.Listener
-
onGcPressureHigh
public void onGcPressureHigh()Description copied from interface:MemoryMonitor.ListenerInvoked when the ratio of time spent in GC over the rolling pressure window exceeds the configured GC pressure threshold. Fires once on the transition; further GC events while pressure remains high are suppressed.- Specified by:
onGcPressureHighin interfaceMemoryMonitor.Listener
-
onMemoryRecovered
public void onMemoryRecovered()Description copied from interface:MemoryMonitor.ListenerInvoked after a GC cycle when old generation usage has dropped back below the memory threshold, following a priorMemoryMonitor.Listener.onMemoryLow()notification.- Specified by:
onMemoryRecoveredin interfaceMemoryMonitor.Listener
-
onGcPressureRelieved
public void onGcPressureRelieved()Description copied from interface:MemoryMonitor.ListenerInvoked when a GC event causes the rolling pressure ratio to drop back below the threshold, following a priorMemoryMonitor.Listener.onGcPressureHigh()notification.- Specified by:
onGcPressureRelievedin interfaceMemoryMonitor.Listener
-
onGcCompleted
public void onGcCompleted()Description copied from interface:MemoryMonitor.ListenerInvoked after every GC event, regardless of alert state. Useful for listeners that need to recheck their own state after GC has reclaimed memory — for example, to verify whether a previous corrective action (like shrinking a container) was sufficient.- Specified by:
onGcCompletedin interfaceMemoryMonitor.Listener
-