8348278: Trim InitialRAMPercentage to improve startup in default modes

Reviewed-by: eosterlund, sjohanss
This commit is contained in:
Aleksey Shipilev 2025-09-19 14:26:05 +00:00
parent 54206943a1
commit 1512d889de
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@
"size on systems with small physical memory size") \
range(0.0, 100.0) \
\
product(double, InitialRAMPercentage, 1.5625, \
product(double, InitialRAMPercentage, 0.2, \
"Percentage of real memory used for initial heap size") \
range(0.0, 100.0) \
\

View File

@ -2448,7 +2448,7 @@ Java HotSpot VM.
: Sets the initial amount of memory that the JVM will use for the Java heap
before applying ergonomics heuristics as a percentage of the maximum amount
determined as described in the `-XX:MaxRAM` option. The default value is
1.5625 percent.
0.2 percent.
The following example shows how to set the percentage of the initial
amount of memory used for the Java heap: