0

I'm running Windows 8, and I'm wondering if I should download the Minecraft server in an EXE program or a JAR file. I heard that with a JAR you can customize the amount of RAM you wish to give to a server. I have 8 GB of RAM. What would be the best way to get the best performance?

1 Answer 1

4

You said in your post that you wanted the best performance. Because of this, I would recommend that you get the .jar file. It allows you to customize the amount of RAM the server has, allowing you to tweak it to your heart's content.


You will also be allowed to use the following switches:
-d64 If your computer has a 64-bit architecture and you want to take advantage of that.
nogui if you don't want the graphical interface.
-o true/false to set the online/offline mode.
--port to choose which port you want to use.
--world to change the directory the world is in.
--bonusChest to enable the spawning of bonus chests in the world.
-Xmx####M or -Xmx##G to set the maximum java heap size (basically adding more RAM).
--demo, which changes the following properties in server.properties:

Seed          => -343522682 (a hash of "North Carolina")
Game Mode     => Survival
Map Features  => Enabled
Hardcode Mode => Disabled
World Type    => DEFAULT

In addition to the switches listed above, you can pretty much add any Java switch for ultimate tweaking.


To implement these, you would make a Windows batch script similar to this:

@ECHO OFF
CD /D %~dp0
JAVA -Xmx2048M -d64 -jar Minecraft_server.jar  -o true nogui

This would start the server without a graphical interface, with whitelist set to true, and with 2 gigabytes of memory to start out with.

11
  • How would I add these parameters? Could you provide an example of the run batch code with these features added?
    – Tristan
    Mar 9, 2014 at 2:37
  • @Tristan Added to answer
    – user28379
    Mar 9, 2014 at 3:13
  • What code would give me the best possible performance? I'm on 64 bit architecture and 8 GB of RAM.
    – Tristan
    Mar 9, 2014 at 3:20
  • Are you launching the client on the same computer?
    – user28379
    Mar 9, 2014 at 3:21
  • Yes I am! Would that slow down the server a lot?
    – Tristan
    Mar 9, 2014 at 5:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .