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" 



nogui




[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" 



nogui




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





#!/bin/sh

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" 



nogui

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

I've been using a variation of that on a x64 CentOS server too. It saved me a LOT of trouble and quite a bit of money as it allows the server to run well with alot less memory used.

Highly recommended.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...