Minecraft is one of the most popular games of this generation, and is available for pretty much every platform, from PC to iOS and Android. It runs really well on most devices, but it could always be better – especially if you’ve got a PC with a lot of RAM to take advantage of. The issue is that, by default, Minecraft is only allocated 1GB of RAM – not great if you’ve got 8- or 16GB of RAM in your PC.
While it was once rather complex to allocate more RAM in Minecraft, the 2.0.0 update changed all that. Here’s how to allocate more RAM in Minecraft on PC and for those running Minecraft on a server.
If you want to play other Minecraft-esque games, be sure to check out our list of the best alternatives to Minecraft.
How to allocate more RAM in Minecraft (V2.0.0 or later)
While it was once a complex task to manually allocate more RAM in Minecraft, Microsoft changed all that with the release of version 2.0.0. Minecraft now offers the ability to adjust RAM in the Minecraft Launcher, with no need to edit text files and risk corrupting the game. Here’s how:
- Make sure you’ve got the latest version of Minecraft installed (excluding the demo, which is capped at v1.5).
- Check your computer’s total RAM by going to Start > Settings > System > About.
- Open the Minecraft Launcher by double-clicking the Minecraft icon on your desktop.
- Click the Launch Options tab in the top-right of the window.
- Make sure Advanced Settings is enabled (green switch) and select the profile you’d like to edit. If there’s only a single profile, click it.
- Toggle on the JVM arguments switch.
- A line of text should appear, including the phrase -X1G. Change the 1 to the number of gigabytes of RAM that you’d like to allocate to Minecraft. You shouldn’t allow Minecraft to use more than two-thirds of your overall RAM, or you may run into other issues.
- Click Save at the bottom of the window to save your changes.
And that’s it! The next time you load up Minecraft, it’ll use the specific amount of RAM you allocated.
How to allocate more RAM in a Minecraft Server
The process to adjust the amount of RAM Minecraft uses when hosted on a server is slightly different, as it’s not baked into the Launcher like the standard game. It’s not too complicated though:
- Open your Minecraft server directory (the folder that contains the Minecraft_server.exe file you launch the Minecraft server with). If you’re unsure of the location, search “Minecraft_server” on your PC.
- Click Home > New Item > Text Document on PC to create a text document in the server directory.
- In the new text document, paste the following (if on PC):
java -Xmx####M -Xms####M -exe Minecraft_Server.exe -o true
- Replace #### with the value, in MB, that you want to allocate (1GB = 1024MB). For example, if you want to allocate 2GB of RAM, you’d enter 2048.
- Click File > Save As… and change Save as type to All Files. Name the file server launcher and change the extension from .txt to .bat.
- The file you created will now be the new launcher for your Minecraft server – simply double-click it to run. Using the .bat file to launch the server will automatically allocate the specified amount of RAM.
See, easy right? Now go back to enjoying your voxel-based game with better performance than ever before!