Java command line help please

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jul 07, 2008 1:47 pm

Java command line help please

Post by j0rd0n420 »

I'm using Ubuntu 10.04 with java:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

I'm trying to run this line:

Code: Select all

java -server -Xms1536 -Xmx3072M -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=2 -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 -jar craftbukkit.jar nogui
But it will not let me (says: command not found) until I take out these two commands:
-XX:TargetSurvivorRatio=90 -XX:+OptimizeStringConcat
Anyone know if they're that important or how I can make them work?
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Java command line help please

Post by Edge100x »

I wouldn't recommend using anything that elaborate in starting a Minecraft server. You'll likely only get a few percentage points of extra performance from all of those extra options, and that's if you're lucky. Instead, my suggestion is something simple like this:

Code: Select all

-Xmx3072M -Xincgc -jar craftbukkit.jar nogui
If you want to squeeze out every last bit of performance, try the more complicated one, but add groups of options separately and test after each.

The first one of the two options you gave appears to be Minecraft-specific and changes in-game behavior The second is probably a general Java option, and is tries a different optimization strategy for a particular function.
Post Reply