More gc adjustments [stage]

This commit is contained in:
crschnick
2025-06-13 13:15:44 +00:00
parent e14870aa61
commit 0a40eedf18
2 changed files with 10 additions and 6 deletions

View File

@@ -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'
];

View File

@@ -1 +1 @@
16.7-5
16.7-6