Skip to content

Commit

Permalink
Lower G1 minimum full GC interval
Browse files Browse the repository at this point in the history
We sometimes see a need to do full GC twice within the current 5s interval.
While we should work to improve our allocation pattern for that, it also
seems too conservative to not allow more full GCs, as long as we also get
some real work done. Hence lowering it to 2s here, which would fix the
current problematic cases.
  • Loading branch information
henningandersen committed Feb 7, 2024
1 parent b1adb78 commit 7951397
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ static OverLimitStrategy createOverLimitStrategy(boolean trackRealMemoryUsage) {
createYoungGcCountSupplier(),
System::currentTimeMillis,
500,
5000,
2000,
lockTimeout,
fullGCLockTimeout
);
Expand Down

0 comments on commit 7951397

Please sign in to comment.