마인크래프트 정보

jvm arguments

RuDas 2014. 10. 14. 13:15

-server -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -Djline.terminal=jline.UnsupportedTerminal -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=32 -XX:+AggressiveOpts -XX:UseSSE=4 -XX:PermSize=128m -XX:MaxPermSize=256m -Xincgc -jar "{JAR}" nogui




Java 7:

-Xmn2G -Xss4M -Xms4G -Xmx4G -XX:+UseLargePages -XX:PermSize=256M -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UseCompressedStrings -XX:+UseBiasedLocking -Xincgc -XX:MaxGCPauseMillis=10 -XX:SoftRefLRUPolicyMSPerMB=10000 -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=10 -Djava.net.preferIPv4Stack=true


Java 8:

-Xmn2G -Xss4M -Xms4G -Xmx4G -XX:+UseLargePages -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:+UseBiasedLocking -Xincgc -XX:MaxGCPauseMillis=10 -XX:SoftRefLRUPolicyMSPerMB=10000 -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=10 -Djava.net.preferIPv4Stack=true


The command line option, for Java 7, has been tested by Viper-/ and the command line options for Java 8 has been tested by me. Both seems to be working.


I will make sure to change this post, if any of you guys find any problems with any of the options.


EDIT #1: Removed "-XX:+UseStringCache" from Java 8 options, as it's no longer valid.

EDIT #2: Removed "-XX:UseSSE=4", as it defaults to "99" with the newer versions of Java.

반응형