+5 votes
272 views

How to allocate more RAM to Minecraft?

Learn how to increase the amount of RAM you can allocate to Minecraft. You can solve the memory errors that sometimes prevent its proper functioning.


in Other Applications by (552k points)
reopened by | 272 views

1 Answer

+3 votes
Best answer

How to allocate more RAM in Minecraft (V2.0.0 or later)
How to allocate more RAM to a Minecraft server

Minecraft continues to be one of the most popular games of the new generations of users with the incentive that it is available for almost all platforms, from PC to Mac and even iOS and Android. 

It works very well on most devices, although we must recognize that it is always possible to improve it, especially if you have a PC with a lot of RAM that can be used. 

And it is that the operating system, by default, allocates to Minecraft a very small amount of 1 GB of RAM, which we think is scarce if it turns out that your PC computer has a total of 8 or 16 GB of RAM in its configuration. 

Although it may seem overly complex to allocate more RAM in Minecraft, update 2.0.0 changed all this. Here we wanted to explain how you can allocate more RAM in Minecraft for PC, as well as for all those who run Minecraft on a server.

How to allocate more RAM in Minecraft (V2.0.0 or later)

Although, a long time ago we seemed to have a complex task of manually allocating more RAM to Minecraft, Microsoft changed all this with the release of version 2.0.0. 

In this way, now Minecraft offers the possibility to adjust the RAM helped by the executable or launcher of Minecraft ', without the need to edit text files and corrupt the game. Follow these steps:

  1. Make sure you have the latest version of Minecraft installed (excluding the demo, which has a limit in version 1.5).
  2. Check the amount of total RAM of your PC in 'Start> Settings> System> About'.
  3. Start Minecraft by double clicking on the Minecraft icon on your desktop.
  4. Click on the 'Startup Options' tab in the upper right part of the window.
  5. Make sure that the 'Advanced Settings' is enabled (green switch) and select the profile you want to edit. If there is only one profile, click on it.
  6. Activate the JVM argument switch.
  7. A line of text should appear, including the phrase -X1G. Change '1' to the amount of gigabytes of RAM you want to allocate to Minecraft. You should not allow Minecraft to use more than two thirds of your general RAM, or other problems will appear.
  8. Click on 'Save' so that all changes are made.

It is done. The next time you start Minecraft, the game will use the amount of RAM you have allocated.

How to allocate more RAM to a Minecraft server

The process to allocate more RAM to Minecraft when it is hosted on a server is slightly different, since it is not integrated into the executable or Launcher as is the case with the standard game. 

These are the steps to perform:

  1. Open your Minecraft server directory (the folder that contains the file 'Minecraft_server.exe' with which the Minecraft server starts). If you are not sure of the location, search for “Minecraft_server” on your PC.
  2. Click on 'Start> New item> Text document' on the PC to create a text document in the server directory.
  3. In the new text document, paste the following commands (if you are on the PC):  java -Xmx #### M -Xms #### M -exe Minecraft_Server.exe -o true PAUSE
  4. Replace #### with the value, in MB, that you want to assign (1GB = 1024MB). For example, if you want to allocate 2 GB of RAM, you must enter 2048.
  5. Click on 'File> Save as ...' and change 'Save' as type in 'All files'. Rename the file server executable and change the extension from .txt to .bat.
  6. The file you created will now be the new 'launcher' for your Minecraft server. Just double click to run it. Using the .bat file to start the server will automatically allocate the specified amount of RAM.

It wasn't that complicated, right? Enjoy your Minecraft game again but with improved performance compared to the speed you had before. 


by (552k points)
selected by

Related questions

+5 votes
2 answers
asked Dec 16, 2019 in Other Applications by backtothefuture (552k points) | 964 views
+3 votes
1 answer
asked Dec 29, 2021 in Tips & Tricks by backtothefuture (552k points) | 97 views
+3 votes
1 answer
asked Oct 2, 2019 in Windows 10 by backtothefuture (552k points) | 329 views
+3 votes
1 answer
asked Sep 27, 2023 in Otherapps by backtothefuture (552k points) | 72 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users