Minecraft out of memory FIX 1.5.2
OBSOLETE AS OF 1.6.2
read description for more info and FAQ:
a simple fix to the error that crops up in Minecraft where it has run out of memory, typically during TNT explosions, using large mods or HD textures, and flying in creative. it also makes large TNT explosions which would not quite crash Minecraft much less laggy, and also prevents chunks from having to be re-rendered.
THIS WILL REDUCE YOUR FRAMERATE WHATEVER ANY OTHER SIMILAR VIDEOS MAY SAY if you play for long periods without reloading the map. there is no avoiding that because of a memory dumping error associated with allocating too much RAM. for this reason, i cannot recommend you use this unless you have to.
1GB=1024MB
2GB=2048MB
3GB=3072MB
4GB=4096MB
6GB=6144MB
8GB=8192MB
10GB=10240MB
12GB=12288MB
16GB=16384MB
24GB=24576MB
32GB=32768MB
Code to copy-paste
Windows 7(64bit), Windows Vista(64bit) only:
@echo off
cd %AppData%\.minecraft
start javaw -Xmx6144m -Xms6144m -Djava.library.path=".\bin\natives" -classpath "bin\minecraft.jar;bin\jinput.jar;bin\lwjgl.jar;bin\lwjgl_util.jar" net.minecraft.client.Minecraft
All other windows versions, and if the above doesn't work:
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx2048M -Xms2048M -jar "C:\Users\*username*\desktop\minecraft.exe"
(replace *username* with your PC username and make sure the filepath is right to the exe)
FAQ:
Q: Its lagging a lot
A: reduce the allocated RAM by half. if it still lags, make the number preceeded by Xms half the number preceeded by Xmx for example: -Xmx2048m -Xms1024m. If it is still lagging, install the mod OptiFine
Q: I get blackscreen, then error report/it still runs out of memory
A: If you have any RAM not allocated, double the number preceeded by Xmx in the batch file. If not, half the number preceeded by Xms. If you still get blackscreen, reduce the render distance and stop blowing up so much TNT
Q: I cant log in to Minecraft.net
A: This is effectively a simplified minecraft launcher. The launcher usually logs in to minecraft.net, and so usually people have difficulty playing online with this. The fix is surprisingly simple: at the end of the code, type your username, leave a space, then type your password. You will then automatically log in to minecraft.net on opening the file
Q: It says 'Invalid or corrupt Jar file'
A: There are many errors which could cause this, one of the more likely is that you are not administrator on the computer. To make this work you have to be an admin. this often pops up because the batch file is not launching JVM properly to run the jar in
Q: I get 'Javaw was not found'
A: use the other code
Q: javaw is still not found
A: install the latest 64-bit java, and use the first code
Q: How do I find out how much RAM I have installed/which version of Windows I have?
A: Start Menu--Computer--System Properties
Q: what do I do if i only have a small amount of memory installed ie 1gb or less?
A: buy and install more. its dirt cheap. seriously. 1gb costs about £10 ($15) Check with your manufacturer with which type to buy/how to install/whether your computer has any more room etc.
http://www.mrmemory.co.uk (UK)
http://www.crucial.com (US)
Q: How do I change the icon to the standard Minecraft icon
A: Make a SHORTCUT to the batch file on the desktop. Rightclick on the shortcut, go to properties, change icon, browse for file, and select the minecraft application, then apply. rename the shortcut and voila
Q: Does it work with Technic?
A: Technic has an option to change allocated memory in its launcher meaning this fix is not needed
If your question is not answered here or in the comments, feel free to post it in the comments. I will endeavour to answer quickly, but I will not respond to ' HEEEEEELPPPP!!!!! IT WONT WOOOORK!!!' etc.
Other Videos By toby1248
2015-06-10 | Robocraft Trailer 1.0 |
2015-05-18 | Building Shiva's Guard Mk. 5 | TESLA SLED |
2015-05-18 | Building Shiva's Guard Mk5 |
2015-05-10 | Cities Skylines 81 Tiles Mod: The Commute of Mary Jackson |
2015-03-02 | Ultra-light Robocraft Hover |
2015-02-24 | Trolling Megabots with Mega-SquareChan |
2013-12-01 | 9 TOG II*, One tank company |
2013-04-14 | Harlem Shake: Age of Empires 2 |
2012-10-19 | 16 bit Minecraft Calculator v3 |
2012-01-14 | calculating pi to 100,000,000 places!!! |
2011-11-10 | Minecraft out of memory FIX 1.5.2 |
Other Statistics
Minecraft Statistics For toby1248
At present, toby1248 has 35,867 views spread across 2 videos for Minecraft, and less than an hour worth of Minecraft videos were uploaded to his channel. This is 5.41% of the total watchable video on toby1248's YouTube channel.