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?
Minecraft – Should I Get the Minecraft Server in an EXE or JAR
minecraft-java-editionminecraft-java-edition-serverwindows
Best Answer
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: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:
This would start the server without a graphical interface, with whitelist set to true, and with 2 gigabytes of memory to start out with.