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
java -Xms8G -Xmx10G -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:-UseParallelGC -XX:-UseParallelOldGC -XX:-UseG1GC -XX:+UseZGC -jar server.jar -nogui | |
# So whenever you stop it it doesn't go kaboom | |
PAUSE | |
# If you notice degraded performance, higher CPU usage, more memory commits/uncommits, setting the following flag might help you: -XX:-ZUncommit | |
# If your run a jdk more recent than the jdk 14 (fore eg 15 or 16 or +) use that flag to start your server: -DPaper.IgnoreJavaVersion=true | |
# If you want the gui remove this flag: nogui | |
# YOU MUST CHANGE Xms AND Xmx DEPENDING OF YOUR SYSTEM; it is better to have a -Xms 20% lower than the value of Xmx. | |
# To log GC to a file add the following flag: -Xlog:gc*:logs/gc.log:time,uptime:filecount=2,filesize=8M |