From 0a40eedf18edd1b8b709e6ac804aeb09359dffe3 Mon Sep 17 00:00:00 2001 From: crschnick Date: Fri, 13 Jun 2025 13:15:44 +0000 Subject: [PATCH] More gc adjustments [stage] --- build.gradle | 14 +++++++++----- version | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 45091cf56..9a3df0e20 100644 --- a/build.gradle +++ b/build.gradle @@ -166,17 +166,21 @@ project.ext { // Use project liliput jvmRunArgs += ['-XX:+UnlockExperimentalVMOptions', '-XX:+UseCompactObjectHeaders'] + // Reduce heap usage with deduplication + jvmRunArgs += ['-XX:+UseStringDeduplication',] + // GC config jvmRunArgs += [ '-XX:+UseG1GC', - // Resizing heap on older Windows systems is very costly for some reason + // Resizing heap is costly // Make sure that heap is not resized on startup at least - os.isWindows() ? '-Xms500m' : '-Xms300m', + '-Xms500m', '-Xmx4G', + '-XX:MinHeapFreeRatio=15', + '-XX:MaxHeapFreeRatio=25', '-XX:GCTimeRatio=9', - '-XX:+UseStringDeduplication', - // This is very important for some (mostly slower) systems - // The default makes GC pauses 100x times longer for some reason + // This is very important for some older Windows systems + // The default makes GC pauses longer for some reason '-XX:G1HeapRegionSize=4m' ]; diff --git a/version b/version index 684b98e23..68f16092e 100644 --- a/version +++ b/version @@ -1 +1 @@ -16.7-5 +16.7-6