IHOP Tuning: Top 3 Factors for ML Throughput & Stability
Optimal IHOP tuning for ML performance hinges on three critical factors: 1) the application's object allocation rate (lower IHOP for high rates), 2) balancing with `MaxGCPauseMillis` to meet latency goals, and 3) sufficient `G1ReservePercent` to provide a buffer for object evacuation and prevent `Evacuation Failure`.
The top 3
- IHOP's Dynamic Link to Allocation Rate: The optimal -XX:InitiatingHeapOccupancyPercent (IHOP) directly depends on your ML application's object allocation rate; a lower IHOP (e.g., 30-35%) prevents Full GCs in high-allocation scenarios, while default 45% or higher suits low-allocation workloads.
- Adaptive IHOP: Default Intelligence vs. Manual Override: Java 9+ G1GC defaults to Adaptive IHOP, automatically optimizing the threshold; only disable it (-XX:-G1UseAdaptiveIHOP) for manual tuning if consistent Full GCs due to late marking persist.
- IHOP's Role: Full GC Prevention for Stability: The primary goal of IHOP tuning is to prevent Full GCs, which are costly stop-the-world events that severely degrade ML throughput and stability. Correct IHOP helps G1 complete marking before the old generation fills.
Sources
Open the full topic