How to Allocate More RAM to Minecraft

Additional RAM boosts performance and allows more people on your server

What to Know

  • Open the launcher: Edit > More Options on your install to adjust RAM settings.
  • Change the existing Xmx2G to a different value, such as Xmx4G, to change 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 which makes it easy to adjust all sorts of settings for the game. One of the settings you can tweak is how much RAM the game can utilize. If you're running a big map with lots of custom creations, 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's how to do it:

  1. Open the Minecraft launcher. If necessary, log in to your Microsoft or Mojang account.

  2. From the launcher home screen, select Installations in the top menu bar.

    Minecraft launcher on Windows 11 with Installations highlighted
  3. You should see your current installation of Minecraft listed on the page, along with any other installations of the game you have on your system. Select the one you wish to allocate more RAM to, then click the three-dot menu icon on the right-hand side.

    Selecting a Minecraft install in the launcher with More (three dots) highlighted
  4. Select Edit.

    Selecting Edit on the Minecraft install in the launcher.
  5. Select More Options at the bottom of the screen.

    Opening the more advanced options on a Minecraft install with More Options highlighted
  6. Underneath the heading JVM Arguments you'll see a bar with a string of text in it. Near the start you should see something that looks like -Xmx2G or similar. The 2G portion of that denotes the 2GB of RAM that Minecraft has allocated to it. To increase that, all you need to do is change the value of the number.

    Select the text field to place your cursor in it, then use your keyboard to delete the 2, and replace it with another number. In our testing, we changed it to 4G, allocating 4GB of RAM to our Minecraft install.

    Adjusting the amount of allocated RAM with JVM Arguments highlighted

    Minecraft needs at least 2GB to function at all, so be sure to allocate at least 2GB when making changes to the memory allowance. 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 unsure, this article explains how to find out how much RAM you have.

  7. Select Save. Then you can select the Play tab, followed by Play to begin 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 making sure it has enough RAM is important. Without enough, you will be limited in the number of players your server can support, and the game can lag as changes to the world are sent out to every other player.

Fortunately, allocating more RAM to a Minecraft server is still quick and easy. Just follow these steps.

  1. Open the folder where you installed the Minecraft server.

    Minecraft server install on Windows 11.
  2. Right click or tap and hold on any blank space in the folder and select New followed by Text Document.

    Opening a text file in Windows 11 with New > Text Document highlighted
  3. Open the document and then copy and paste the following into it:

    java -Xmx@@@@M -Xms@@@@M - jar server.jar nogui

    Then, change the @ symbols to the quantity of RAM you want to allocate to the server. It needs to be written in the number of Megabytes of memory, and must be a multiple of 64. So for around 2GB of memory, put 2048. That would read:

    java -Xmx2048M -Xms2048M - jar server.jar nogui

    Changing the .bat document text with java -Xmx2048M -Xms2048M - jar server.jar nogui highlighted
  4. Select File in the top-left corner, and select Save As. Then set Save as type to All Files. Rename the file to file server launcher.bat and Select Save.

    Saving as All File Types.
  5. Select the file server launcher file to start your Minecraft server with the newly enhanced allocation of RAM.

    Running the new launcher for Minecraft with File Server Launcher highlighted
  • How do I allocate more RAM to Minecraft CurseForge?

    To allocate more RAM using the CurseForge Minecraft launcher, launch the CurseForge app and select Settings. Under Game Specific, select Minecraft. Under Java Settings, drag 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 with the Twitch launcher, open the Twitch launcher and press Crtl + Comma to launch Settings. Select Minecraft and go to Java Settings. Under Allocated Memory, drag the slider to the right to increase the allotted RAM.

  • How do I allocate more RAM to Minecraft with the Technic launcher?

    To allocate more RAM using the Technic Minecraft launcher, open the Technic launcher and select Launcher Options. Select the Java Settings tab and go to Memory. Use the Memory dropdown to select your desired RAM amount.

Was this page helpful?