Allocating Minecraft More Memory

 

Allocating Minecraft more memory is probably thee best way to prevent the Minecraft Has Run Out of Memory crash. Increasing the amount of RAM available to Minecraft  is a virtually guaranteed method to stop the crash happening in the future. However, you are first going to have to know how much RAM your computer has.


Due to the fact Minecraft uses Java as a runtime environment the amount of memory that it is allocated by default is capped at 1GB. Annoyingly, this is true no matter how much RAM your computer actually has installed as hardware. This is why so many users who are using high-end gaming PCs are so confused when they encounter this error, despite the fact that their computers should be more than capable of running the game. But fear not if you are one of those people, this guide should help fix all of your woes!

It is important to note that you should never allocate the entire amount of RAM that your computer possess into running Minecraft. This has a risk of causing instability in other programs running in the background and causing them to crash instead of Minecraft.

How to Allocate Minecraft More Memory

1. Move your Minecraft.exe into a new folder by itself.

2. Open up Notepad in order to create a new text file. In your text file you need to write the following:

java -Xmx2048M -Xms2048M -jar “minecraft.exe”

(In the following example we are going to allocate 2GB of RAM, for every extra GB of RAM your wish to allocate from your system increase the amount by 1024. Make sure to check how much RAM your system actually has before you try this!)

3. Now you need to save this text as a .bat file in the same folder as your Minecraft.exe. You can name your file whatever you wish.

If at first your Minecraft does not open after having done this then we’re going to have to do some experimenting with our .bat file! Try each of the following in order to get it to work:

  • Change java to javaw
  • Remove the quotation marks around minecraft.exe
  • Add “Pause” on a new line of the .bat after the command.

Depending on your operating system and your version of Java you will need to experiment between using each one of these separately and in conjuction with one another.

If none of these options work then you will want to try the following in your .bat file instead:

“C:\Windows\System32\javaw.exe” -Xmx2048M -Xms2048M -jar “Minecraft.exe”

You may once again need to do some experimenting with quotation marks and javaw.

allocating minecraft more memory

You can tell if you have allocated Minecraft more memory correctly by opening up the console with F4 whilst in the game and checking in the top right of your window for this.

If you are struggling to get the above method to work then you may benefit from watching the below video on allocating Minecraft more memory.

If you are still experiencing issues when allocating Minecraft more memory then you may wish to try some of our other fixes which you can find by clicking here.

Post a Comment

Your email is kept private. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>