Created
October 9, 2021 10:56
-
-
Save Saiv46/8a3b8cadbe2358554399b45af0fcce4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Optimized JVM arguments for Minecraft 1.17+ | |
// JS code: str.split('\n').filter(v => !v.startsWith('//')).map(v => v.split(' //')[0]).join(' ') | |
// Results: | |
// -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:-UseBiasedLocking -XX:-UseG1GC -XX:+UseShenandoahGC -XX:MaxGCPauseMillis=10 | |
// | |
-XX:+UnlockExperimentalVMOptions // Unlocks experimental options | |
// -XX:+AggressiveHeap // Enables Java heap optimization (DEPRECATED) | |
// -XX:+AggressiveOpts // Enables the use of aggressive performance optimization features (DEPRECATED) | |
-XX:+AlwaysPreTouch // Enables touching of every page on the Java heap during JVM initialization | |
-XX:+DisableExplicitGC // Disables System.gc() calls which causes excess GC | |
-XX:+ParallelRefProcEnabled // Enables parallel reference processing | |
// -XX:+PerfDisableSharedMem -XX:-UsePerfData // Disable performance monitoring (NOT RECOMMENDED) | |
-XX:+UseStringDeduplication // Enables remove of duplicate String values | |
-XX:-UseBiasedLocking // Disable biased locking | |
-XX:-UseG1GC // Disable default GC Minecraft uses | |
-XX:+UseShenandoahGC // Use Shenanddoah Garbage Collector - regionalized low latency collector (OpenJDK 15+) | |
// -XX:+UseZGC // Use Z Garbage Collector (ZGC) - scalable low latency GC (JDK 11+) | |
-XX:MaxGCPauseMillis=10 // Target max GC time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment