SHARE
TWEET

JVM Arguments and Documentation

SatanicSanta Aug 20th, 2014 3,115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -Dforge.forceNoStencil=true -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
  2.  
  3. I run these with:
  4. PermGen: 256MB
  5. Minimum RAM: 512MB
  6. Maximum RAM: 2048MB
  7. Using Java 1.7 update 67. They should work fine with Java 6, after all, they were originally made in Java 6. A couple of the arguments are disabled for my current version of Java (1.7 67), but they should not crash.
  8.  
  9. Do not use Java 32bit with these arguments. Most of them are not available in it. You shouldn't be using 32bit anyway :P
  10.  
  11. DOCUMENTATION
  12. -Dforge.forceNoStencil=true
  13.         This should fix the chunk generation/loading clientside lag in Minecraft 1.7.
  14. -XX:+UseLargePages
  15.         This forces Java to use LargePage memory
  16. -XX:+AggressiveOpts
  17.         Turn on point performance compiler optimizations
  18. -XX:+UseFastAccessorMethods
  19.         Use optimized versions of Get<Primitive>Field
  20. -XX:+OptimizeStringConcat
  21.         Optimize String concatenation operations where possible.
  22. -XX:+UseBiasedLocking
  23.         Enables a technique for improving the performance of uncontended synchronization
  24. -Xincgc
  25.         Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will eliminate occasional garbage-collection pauses during program execution. However, it can lead to a roughly 10% decrease in overall Garbage Collector performance.
  26. -XX:MaxGCPauseMillis=10
  27.         Sets the maximum Garbage Collector pause time to 10 milliseconds. This is a soft goal, and the JVM will make its best effort to achieve it.
  28. -XX:SoftRefLRUPolicyMSPerMB=10000
  29.         Changes the default value of one second of lifetime per free megabyte in the heap to 10000 milliseconds.
  30. -XX:+CMSParallelRemarkEnabled
  31.         Reduce remark pauses in garbage collector.
  32. -XX:ParallelGCThreads=10
  33.         Sets the number of threads used during parallel phases of the garbage collectors to 10.
  34. -Djava.net.preferIPv4Stack=true
  35.         Forces java to use IPv4 instead of IPv6.
  36.  
  37. More information on Java HotSpot VM Options here: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top