Jump to content

Server laggin? not performing how you want it?

Recommended Posts

Hello all,

Some of you might already know this or use this, but alot of people don't understand the launcher or a shell file and don't know you can add alot or params to better run your Tekkit.

First off, this is not mine, just spreading the information around, the original post and creator can be found http://forums.bukkit.org/threads/optimize-java-for-minecraft-in-a-extreme-way-p-need-feedback-thx-i-am-back.25994/ ALL Credits to him/her.

Remember to make changes to the -Xmx and -Xms (-Xms is how much RAM your server boots with, -Xmx is how much MAX ram you will allocate to it)

[64 Bit Optimized for pure Satisfaction]

java -native -server -Xincgc -Xmx6144M -Xms2048M -Xmn512M -XX:NewRatio=3 -Xrs -XX:+UseThreadPriorities

-XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC 

-XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods 

-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 

-XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -Xcheck:jni -Xfuture -XX:+AggressiveOpts -cp "Tekkit.jar" -jar "Tekkit.jar" 


[32 Bit Optimized for longtime Crafting !!!]

java -native -server -Xincgc -Xmx2048M -Xms512M -Xmn256M -XX:NewRatio=2 -Xrs -XX:+UseThreadPriorities 

-XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=1024 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC 

-XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods 

-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 

-XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=2 -Xcheck:jni -Xfuture -XX:+AggressiveOpts -cp "Tekkit.jar" -jar "Tekkit.jar" 


It will run and work on a VPS, mine is simply


java -native -server -Xincgc -Xmx3072M -Xms1024M -XX:NewRatio=3 -XX:+UseThreadPriorities -XX:CMSFullGCsBeforeCompaction=1 

-XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC 

-Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC 

-XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=8 -XX:+AggressiveOpts -cp "Tekkit.jar" -jar "Tekkit.jar" 


I run mine from a shell file (.sh) since my OS on the VPS is Linux+CentOS it has a starting heap of 1GB, and a max heap of 3GB, with this added into my launcher our server took 64 Nukes, we went up a few ticks and went to 125, still ran strong, so we decided to give it the ultimate test and plopped down 2491 (WorldEdit) It ran strong for awhile until the blast radius started to spill into un-loaded chunks.

If you use this and it helps you, please goto the original post located at the top of this post, and thank the OP, or if you need support, make sure to visit that post, im simply spreading the information.

-Fixed formatting lol remove the extra spaces (Double Enter)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...