But the bigger and better your Minecraft world is, the more RAM it needs to function. And if not enough RAM is allocated to the game, it will slowly load, stutter, and may even freeze.
Fortunately, there is a solution. There are several ways to allocate more RAM to “Minecraft”, each of which is quite simple and straightforward.
And if you run your own Minecraft server, you can also allocate more RAM, which means that more people can play on the server at the same time.
Here is a rundown of all the ways to allocate more RAM to “Minecraft”.
How to allocate more RAM to “Minecraft”
To change the amount of RAM that “Minecraft” can use, you will need to change the settings of your Minecraft Launcher app. The launcher app is the program you use to launch “Minecraft”.
There are several launcher apps you might use, depending on what type of mod you have installed. We’ll look at three of the most popular, starting with the standard “vanilla” launcher that most people use.
RAM Allocation Using the Default “Minecraft” Launcher
If you are familiar with “Minecraft”, you are probably also familiar with the game’s default launcher app, called “Minecraft Launcher”. Here’s how to use it to reallocate RAM.
1. Open Minecraft Launcher and select the “Installations” tab at the top.
2. Scroll with your mouse over the “Minecraft” version you want to allocate RAM to, then click on the three dots on the right and select “Edit”.
3. Select “More Options” in the lower right corner of the screen to display two additional fields.
4. At the beginning of the “JVM Arguments” field, there is some code that reads “-Xmx2G” or something similar: “2G” represents how many gigabytes of RAM “Minecraft” can currently use (in this case, 2 GB). Change that number to change the amount of RAM allocated. Leave the rest of the text as it is.
5. Tap “Save” to finalize the changes.
RAM allocation using CurseForge’s “Minecraft” launcher
1. Launch the CurseForge app. Access “Settings” by clicking on the gear icon in the lower left corner of the screen.
2. There is a “Game Specification” section in the column on the left side of the settings page. Select “Minecraft”.
3. Scroll down to “Java Settings” where you will see “Allocated memory” with a slider. From here, simply drag and drop the orange ball on the slider to your preferred RAM allocation. Any changes will be saved automatically.
RAM allocation using ATLauncher’s “Minecraft” launcher
1. Launch ATLauncher and click “Settings”, located in the right panel.
2. At the top of the settings page, you will see several tabs. Click on the “Java / Minecraft” tab.
3. You will see a list of adjustable properties. The second listed is for “Maximum Memory / RAM” and this is the number you will want to increase. It’s listed in megabytes, so remember that 1024MB equals 1GB.
4. After adjusting the maximum RAM, be sure to click “Save” at the bottom to confirm the changes.
How to allocate RAM to a Minecraft server running on a PC
Finally, you could be running your own Minecraft server. If the server doesn’t have enough RAM, it won’t be able to load or support users playing it, and any changes made in the game will delay.
If you want to increase the amount of RAM your server can use, here’s how. Note that these steps are for servers running from a Windows 10 PC – the method for doing this on a Mac or Linux computer will be different.
1. Open the folder that contains all the files on your Minecraft server.
2. Right-click on any black space in the folder, then select “New” and “Text Document”. You can leave the document unnamed for now.
3. Open the document, then paste the following code:
java -Xmx####M -Xms####M -exe Minecraft_Server.exe -o true PAUSE
In place of “####” enter how much RAM you want to allocate. You will write the allocation in megabytes, so if you want to allocate 2 GB, for example, you would enter “2048”, making the code:
java -Xmx2048M -Xms2048M -exe Minecraft_Server.exe -o true PAUSA
4. Now click on “File”, then on “Save as…” In the menu that opens, change “Save as type” to “All files”. Save it.
5. Once the document is saved and visible in your folder, rename it “file server launcher.bat” – without the quotes.
6. What started out as a text document is now the new launcher for your Minecraft server. Double-click the new .bat file to run the server with the new amount of RAM.