This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Java and JRE Settings
Aetopia edited this page Sep 23, 2021
·
3 revisions
-
Specify your own Java Executable to use with Lunar Client. Click on the
✎
button to change the Java Executable. -
Specify your JVM arguments to use with Lunar Client. Click on the
Save
button to save your entered JVM arguments.
You can use only Java 16 with Lunar Client!
- GraalVM Java 16: https://github.com/graalvm/graalvm-ce-builds/releases
Optimized JVM Arguments for GraalVM Java 16 JRE originally made by he3als, I have only added -Xmn1G
to the original arguments.
-Xms3G -Xmx3G -Xmn1G -XX:+DisableAttachMechanism -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:+EnableJVMCI -XX:+UseJVMCICompiler -XX:+EagerJVMCI -Djvmci.Compiler=graal
- These arguments are useful if you are running low on RAM.
-Xms1G -Xmx1G -Xmn768m -XX:+DisableAttachMechanism
- This is a slightly modified version of MC's default arguments. From what I have seen using these arguments will make LC use 3 GB (5 and above will cause memory leaks) RAM and should provide optimal performance.
-Xms3G -Xmx3G -Xmn1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
- This is a slightly modified version of MC's default arguments. Here MC clears out the GC more slowly as compared to any other arguments listed here. This should also provide optimal performance alongside the other arguments listed here.
-XX:+UseG1GC -Xmx3G -Xms3G -Xmn1G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M