Home / Articles / How to Allocate More RAM to Minecraft

How to Allocate More RAM to Minecraft

How to Allocate More RAM to Minecraft Image
  • Posted on 17th Aug, 2022 22:21 PM
  • 1022 Views

Allocating more RAM to your Minecraft game or Minecraft server is a great way to improve performance. Here's how to do it.

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.

  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.

  4. Select Edit.

  5. Select More Options at the bottom of the screen.

  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.

    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.

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

    Text Document highlighted" class="lazyload universal-image__image" data-expand="300" data-hi-res-src="https://www.lifewire.com/thmb/Md2IgXzi3T9eyCNsShNOSPe6bb4=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/TextDocument-360fe8fe165e403782afebbeea97c529.jpg" id="mntl-sc-block-image_1-0-6" data-click-tracked="true" data-tracking-container="true" data-img-lightbox="true">
  3. Open the document and then copy and paste the following into it:

    java [email protected]@@@M [email protected]@@@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

  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.

  5. Select the file server launcher file to start your Minecraft server with the newly enhanced allocation of RAM.

FAQ
  • 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?
How to Allocate More RAM to Minecraft View Story