Passing additional parameters to Java when launching Minecraft Server.

Sep 9, 2013 at 6:48 AM
I would like to pass additional parameters (more parameters than just the memory stuff) to Java like I can when I start it manually.

I would like to pass the following parameters:
"java -server -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar minecraft_server.jar"

I used these before I used MCSM. These parameters seriously improve memory management of JAVA and tick lag.

Read in the minecraft forum under http://www.minecraftforum.net/topic/63836-making-your-server-lag-less-by-tuning-java-settings/.
Coordinator
Sep 9, 2013 at 5:01 PM
Hi Talkietoaster,

Thanks for this! We have been internally discussing how best to include a way to set custom options in the next version. Currently there are two methods on the table:
1 - A textbox where you just enter the custom arguments as one long line that gets appended to the Java call
2- A list box where you can add/remove items - each item is an argument. Arguments can then be easily ordered.

Which do you think is best/would be more user-friendly?

Thanks,
Ed
(Founder & Developer)
Sep 10, 2013 at 5:09 AM
Hi Edward

When coming from running a server without MCSM (like me) and starting the mc server with a batch file, it probably may be easier to just do a textbox for custom arguments. I am not a Java specialist I essentially just ctrl-c-v'd from that forum post and the server "felt better". I don't know how many other java options there are. So providing items for every possible value might eb some task.

Keep the two memory settings where they are 'cause thats something probably everyone is going to mess with and if one has to get clever add the additional stuff with a textbox.
Coordinator
Jan 4, 2014 at 2:35 PM
Edited Jan 4, 2014 at 2:35 PM
Hi Talkietoaster,

I have this implemented this now and its all working perfect! :) This will be out on the new update soon, it will be a text box which you can Copy-Paste your arguments. (Sorry about the wait I have a lot of things going on and finally have some time to work on this project)

Thanks,
Kieron (Lead Developer)