Damn Those Problems
23Jun/11117

Minecraft, Not enough memory!

Posted by Billie

Minecraft out of memory 

"This article is outdated! For the new version click here!"

"Using Feed the Beast? click here"

 A lot of people have the following error when they are playing minecraft: Out of memory!    

 


Minecraft has run out of memory.

Out of memory!

Minecraft error: Out of memory!

 

The solution below is focused on the game client not the server.      

To allocate enough memory to minecraft we are going to make a batch file, don’t worry its easy:

Right click on your desktop en click New > Text document       

New text document

New text document

 

 

 

 

 

 

 

 

 

Name the document anything you like, I’ll name it: minecraft   

Rename to minecraft

Rename to minecraft

 

 

 

 

 

 

Open the document   For Windows Vista 64 bit or Windows 7 64 bit type in the following: "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms512M -jar "C:\Users\username\desktop\minecraft.exe"  

For a 32 bit Windows Vista or Windows 7 type in the following: "C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms512M -jar "C:\Users\username\desktop\minecraft.exe"  

For Windows XP type in the following: "C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms512M -jar "C:\Documents and Settings\username\desktop\minecraft.exe"      

Put this line in your text document replace username with your own username

Line to put in minecraft.bat

Line to put in minecraft.bat

 

 

 

 

For username fill in your current username, to find out what your username is press the start button and your username will appear in the top right corner of your start menu for windows Vista and windows 7 users and on the top left corner for windows XP users     

Your username in the start menu

Your username in the start menu in this case admin

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To find out if you are running a 64 bit windows or a 32 bit windows, click start, right click Computer or My computer and choose properties, behind system type it will say either 64 bit or 32 bit    

64 bit or 32 bit

64 bit or 32 bit

 

 

 

 

 

 

You can experiment with the memory values in the batch file if you have more ram in your machine try 2048 for the first value and 1024 for the second for example. In notepad go to File> Save as… In the Save as type dropdown menu select All Files  

Choose All Files

Choose All Files

 

 

 

 

 

 

 

 

 

 

Now save the file as minecraft.bat  

Save as minecraft.bat

Save as minecraft.bat

 

 

 

 

 

Start minecraft using your newly created bat file from now on.  

Batch file and txt

To the left the batch file, to the right the txt

                         

 

 

 

 

 

 

The batch file is the file with the gears in the icon, you can delete the minecraft.txt when you are done  

Double click the bat file (the one with the gears) to start minecraft

Good luck!