Skip to content

Commit 9f27b93

Browse files
committed
Merge branch 'master' into update_jvm_args
2 parents 10076f1 + 8034478 commit 9f27b93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/java/net/adoptopenjdk/icedteaweb/jvm/JvmUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ private static String[] getValidStartingVMArguments() {
248248
"-XX:+CMSParallelRemarkEnabled",
249249
"-XX:+UseZGC",
250250
"-XX:+ZGenerational",
251-
"-XX:HeapDumpPath"
251+
"-XX:HeapDumpPath",
252+
"-XX:InitialRAMPercentage", /* The initial heap size as percentage of total memory, conflicts with Xms */
253+
"-XX:MinRAMPercentage", /* Sets the max heap size of RAM as a percentage before looking at other heuristics like MaxRAMPercentage. This is primarily useful for low memory environments (<100m) */
254+
"-XX:MaxRAMPercentage", /* Sets the max heap size of RAM as a percentage */
252255
};
253256
}
254257

0 commit comments

Comments
 (0)