Genre: Open-World-Survival
Studio: Mojang
Publisher: Mojang
Rent a server
Rent a server
Genre: Open-World-Survival
Studio: Mojang
Publisher: Mojang

Allocate more RAM to a Minecraft Server (RAM Upgrade)

While Minecraft in its basic version gets along just fine with the allocated 2 GB of RAM, some mods may make it useful to increase the amount of RAM allocated. If you’re experiencing crashes, playing with elaborate mods or just want to improve the performance of your game, here’s how to give your Minecraft more RAM. On your Mac or PC, you can use the default launcher as well as various third-party launchers. If you want to add more RAM to your Minecraft server, you can find instructions here as well. G-Portal makes it very easy to allocate RAM.

Allocate RAM on a GPORTAL Minecraft Server

With a Minecraft server from G-Portal, you always also book a certain amount of RAM. You can choose from 2GB, 4GB, 6GB and up to 18GB, if you create a custom configuration. With this, you should be prepared for all modpacks and high player numbers.

If you decide on a certain modpack, a certain amount of RAM is recommended. If you need more RAM later on, you can add it at any time.

Quite simple, right?

How to give Minecraft more RAM – Basics 

Without a G-Portal server, the whole thing becomes a bit more laborious. You should first find out two things:

1. How much RAM do I have available?

2. Which version of Java do I have installed?

If you allocate more RAM to the game than the server or PC have available, it can lead to crashes, just like if you allocate too little RAM to Minecraft. Also, if you don’t have the latest version of Java installed, you may not be able to allocate more than 2 GB of RAM to the game. Unfortunately, if you run Minecraft on a 32-bit system, you won’t be able to allocate more than one gigabyte of RAM at all. Also, be careful not to allocate more than half of your available RAM to Minecraft, as it is also needed by your system programs.

Allocate more RAM with the default launcher

  1. Start the Minecraft launcher and go to the installation tab.
  2. Go to the three dots next to your version and select “Edit”.
  3. Find “JVM Arguments” in the Java settings, hidden under “More options”.
  4. Change the command “-Xmx2G” to “-Xmx[desired amount of RAM in gigabytes]G”. So, to assign 4 GB of RAM to the game, it is “-Xmx4G”, for 3 GB it would be “-Xmx3G”.
  5. Now save your settings and you are done.

Allocate more RAM with third party launchers 

The large modding community around Minecraft has created other launchers that can be used to easily install modpacks and change settings. Examples include the “ATLauncher” or the “Technic Launcher”. However, with all these launchers you can add more RAM to Minecraft in a similar way:

  1. Open your launcher and go to the settings (usually in one of the corners of the launcher window).
  2. Go to the Minecraft settings and look for the Java settings there.
  3. Change the amount of RAM allocated according to your needs.

Allocate more RAM to a Minecraft server

Allocating more RAM to Minecraft on your own server is a bit more complicated than with a server from G-Portal:

1. Create a text document on your Minecraft server.

2. Enter the following command:

java -Xmx[desired amount of RAM in megabytes]M -Xms[desired amount of RAM in megabytes]M -jar server.jar nogui PAUSE

For 3 GB of RAM it should look like this:

java -Xmx3072M -Xms3072M -jar server.jar nogui PAUSE

3. Save the document under the name “run.bat”.

4. Search for “server.jar” on your Minecraft server and remove the abbreviation “.jar” in the file name.

5. Now run the “run.bat” file you just created.

We hope you succeeded in dedicating more RAM to Minecraft and wish you a lot of fun with your mods and hopefully a smooth gaming experience.

similar articles