G1's Adaptive IHOP: When to Override the Default

G1 GC defaults to Adaptive IHOP (Java 9+), dynamically adjusting the threshold based on historical data. However, for high-allocation ML workloads, manually setting `-XX:InitiatingHeapOccupancyPercent` (e.g., 30-35%) and disabling adaptive behavior (`-XX:-G1UseAdaptiveIHOP`) can be crucial to trigger concurrent cycles earlier and prevent costly full GCs.

Sources

Open the full topic