Files
javademos/gc-basics/output/02-maxram.txt
T

15 lines
537 B
Plaintext

# The memory half of the rule cannot be emulated with -XX:MaxRAM on 27 or later
## JDK 25
$ java -XX:MaxRAM=1g -XX:+PrintFlagsFinal -version | grep MaxRAM
uint64_t MaxRAM = 1073741824 {pd product} {command line}
## JDK 27
$ java -XX:MaxRAM=1g -XX:+PrintFlagsFinal -version | grep MaxRAM
OpenJDK 64-Bit Server VM warning: Ignoring option MaxRAM; support was removed in 27.0
## JDK 28
$ java -XX:MaxRAM=1g -XX:+PrintFlagsFinal -version | grep MaxRAM
Unrecognized VM option 'MaxRAM=1g'
Error: Could not create the Java Virtual Machine.