aldrigviking Posted June 30, 2012 Share Posted June 30, 2012 FOR McMyAdmin ONLY!!! (but should work with commandline startup, haven't tried it though) I'm using this on my own server, and it works like a charm. What it basicly does, is to clear up and unloads chunks that are not in use, by optimizing GarbageCollection in Java to use several cores and different methods. Combine this with plugins like NoLagg OR MaxTPS and you will get a heck of a boost in RAM performance. Removing chunkloading entities will also help out a lot as well: 1. Open your McMyAdmin.conf file (preferably with an editor that doesn't break indentions, like notepad++). 2. Find line 38 (if using McMyAdmin version 2.1.1.8), something like this should be there: #Values: # incremental # parallel # concurrent # aggressive # default java.gc=default #java.customopts - Extra arguments to pass to Java when the server is started. #FOR ADVANCED USERS ONLY - Don't use this just because you read about it #in a forum, this is for use by people who understand Java's specialized #garbage collection options and other tweaks. USE AT YOUR OWN RISK! java.customopts= 3. at line 50 (where it say "java.customopts="), add the following line (yes, it's ONE line): -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=3 -XX:MaxGCPauseMillis=5 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -Xnoclassgc -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedStrings -XX:+OptimizeStringConcat -XX:+AggressiveOpts It should now look something like this: #Values: # incremental # parallel # concurrent # aggressive # default java.gc=default #java.customopts - Extra arguments to pass to Java when the server is started. #FOR ADVANCED USERS ONLY - Don't use this just because you read about it #in a forum, this is for use by people who understand Java's specialized #garbage collection options and other tweaks. USE AT YOUR OWN RISK! java.customopts=-XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=3 -XX:MaxGCPauseMillis=5 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -Xnoclassgc -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedStrings -XX:+OptimizeStringConcat -XX:+AggressiveOpts Remember - don't ever change the "java.gc=default", otherwise you will break the config file and your server will spew out a slew of errors. This has been tested on several servers (mine included) and works very well. Remember, it won't help that much on TPS lag itself (only noticed a 10-15% improvement), but will really help out on RAM usage, keeping it on an all time low. And notice that this will really stress your CPU if it has less than 4 physcal cores (no... HyperThreading doesn't count). If that is the case, change the "-XX:ParallelGCThreads=3" to 2 if you have 3 or 2 cores, and remove it entirely if you have only 1 core. Hope this is useful... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now