Skip to content

Commit 8034478

Browse files
authored
Merge pull request #954 from tsmock/add-memory-percentage
Add additional valid starting VM arguments
2 parents e8f02c4 + 1f3ff77 commit 8034478

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
@@ -239,7 +239,10 @@ private static String[] getValidStartingVMArguments() {
239239
"-XX:GCTimeLimit",
240240
"-XX:GCHeapFreeLimit",
241241
"-XX:+UseParNewGC",
242-
"-XX:+CMSParallelRemarkEnabled"
242+
"-XX:+CMSParallelRemarkEnabled",
243+
"-XX:InitialRAMPercentage", /* The initial heap size as percentage of total memory, conflicts with Xms */
244+
"-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) */
245+
"-XX:MaxRAMPercentage", /* Sets the max heap size of RAM as a percentage */
243246
};
244247
}
245248

0 commit comments

Comments
 (0)