what to know
- Open the launcher: Edit > Plus Options in your installation to adjust the RAM settings.
- change the existing Xmx2G to a different value, like Xmx4Gto change the allocated RAM.
- There is no way to allocate more RAM to Bedrock.
This article explains how to allocate more RAM to Minecraft for your own personal games and how to allocate more RAM to a Minecraft server so more people can play on your server. These tips will only apply to Minecraft: Java Edition, as there is no way to increase the allocated RAM for Minecraft: Bedrock Edition.
How to give Minecraft more RAM
Minecraft: Java Edition has its own launcher that makes it easy to adjust all sorts of settings for the game. One of the settings you can modify is the amount of RAM the game can use. If you’re running a large map with lots of custom builds, have a lot of mods installed, or just want the best possible performance for your Minecraft game, allocating more RAM can make a big difference.
Here is how to do it:
Open the Minecraft launcher. If necessary, sign in to your Microsoft or Mojang account.
On the launcher home screen, select Installations in the top menu bar.
You should see your current Minecraft installation listed on the page, along with any other installations of the game you have on your system. Select the one you want to allocate more RAM to, then click the three-dot menu icon on the right side.
Select More options at the bottom of the screen.
under header JVM arguments you will see a bar with a text string in it. Near the beginning you should see something that looks like -Xmx2G or similar. the 2 G part of that denotes the 2GB of RAM Minecraft has allocated for it. To increase that, all you need to do is change the value of the number.
Select the text field to place the cursor in it, then use your keyboard to delete the twoand replace it with another number. In our tests, we switched it to 4G, allocating 4GB of RAM to our Minecraft installation.
Minecraft needs at least 2GB to run, so be sure to allocate at least 2GB when making memory allocation changes. It would also be a good idea not to allocate more RAM than your system has, or even close to its maximum. If you’re not sure, this article explains how to find out how much RAM you have.
Select Save money. Then you can select the Play tab, followed by Play to start playing Minecraft with more RAM.
How to Allocate More RAM to a Minecraft Server
If you’re running your own Minecraft server for friends and family to use, then it’s important to make sure you have enough RAM. Without enough, you’ll be limited in the number of players your server can support, and the game may lag as changes to the world are pushed out to all other players.
Fortunately, allocating more RAM to a Minecraft server is still quick and easy. Just follow these steps.
Open the folder where you installed the Minecraft server.
Right click or touch and hold any blank space in the folder and select New followed by Text document.
Open the document, and then copy and paste the following into it:
java -Xmx@@@@M -Xms@@@@M – server jar.jar nogui
Then change the @ symbols to the amount of RAM you want to allocate to the server. It should be written to the number of Megabytes of memory and should be a multiple of 64. So for about 2 GB of memory, put 2048. That would say:
java -Xmx2048M -Xms2048M -server jar.jar nogui
Select Proceedings in the upper left corner and select Save as. then set save as type a All the files. Rename the file to file server launcher.bat and select Save money.
Select the file server launcher file to start your Minecraft server with the newly improved RAM allocation.
Frequently asked questions
How do I allocate more RAM to Minecraft CurseForge?
To allocate more RAM with the CurseForge Minecraft launcher, launch the CurseForge app and select Settings. Under game specificSelect Minecraft. Under Java configurationdrag the allocated memory slider to your preferred location.
How do I allocate more RAM to the Minecraft Twitch Launcher?
To allocate more RAM to Minecraft using the Twitch Launcher, open the Twitch Launcher and press Ctrl + Comma throw Settings. Select Minecraft And go to Java configuration. Under allocated memorydrag the slider to the right to increase the allocated RAM.
How do I allocate more RAM to Minecraft with Technic Launcher?
To allocate more RAM using the Technic Minecraft Launcher, open the Technic Launcher and select launch options. Select the Java configuration tab and go to Memory. Use the Memory drop-down menu to select the desired amount of RAM.
Thanks for letting us know!
Tell us why!
not enough details
Hard to understand