#2 Open Minecraft.exe with the editor in any way you like.
(Drag and drop, file>open, right click Minecraft.exe then EDIT are all good methods to open your file)
#3 Search/Find for the text string "512" (ASCII, not Unicode.)
Alternatively you can use "Go to.." and enter "0002BFA0"
#4 You should now see in the right ASCII column something like this
(The number of bytes shown and colors may vary depending on your editor or window size.)
(The spaces may appear as Squares if you do not have the proper language files, it will still work)
#5 Your editor should allow you to modify the ASCII text directly. Otherwise enter the HEX codes yourself. 30 = 0
31 = 1
32 = 2
33 = 3
34 = 4
35 = 5
36 = 6
37 = 7
38 = 8
39 = 9
00 = .
#6 Start from the first number of RAM, should be "5" from "512".
From there, type the number you wish for, if it overwrites the "00" byte (the space/square) in the middle of the two numbers, DO NOT enter an ASCII space as it is not an empty byte. Instead look at the HEX code and enter "00" after your first number and before the next number
#7 It should now look like this :
#8 Save the file.. :dry.gif:
Alloted ram numbers example :
Now that modified .exe is ready to be launched with 2gb of rams.
Well a friend of mine told me, why not just using the bat file?
I don't know about you, but i've had many problems making those bat files work.
It also involves more steps than using my modified exe.
You can find the download link at the bottom of the page.
It's a freshly downloaded and modified exe as of this post's date.
Now for the curious, this is something anyone with a proper text editor can do.
I've been using my launcher since 1.7 and still works great.
Simply open Minecraft.exe with an HEX editor or similar and search for text string 512 or
as of today, you can find the string to edit at : 0x0002BFA0
As usual, replace 512 1024 for the number you like.
Honestly i've never needed more than 2gb of ram, so 2048 2048.
Now that modified .exe is ready to be launched with 2gb of rams.
For now, the links below are ready to be launched 2gb ram Minecraft.exe
Just download and replace your exe with it or well.. put it wherever makes you happy.
(For "virtual machine could not be created" problems, if using windows 64bit make sure you download JAVA with a 64 bit browser, if problem persist, you either don't have enough RAM or something fishy is going on with your java.)
You need 2048mb ram to run minecraft.exe, plus enough ram to run your computer's processes.
If your computer has 2048mb ram total, it will not work.
This is my problem here. I have a 64 bit OS and I have 64 bit java. I replaced the hex address specified (looks like 512.1024 in Frhed) with 20482048. I have 8g of RAM. Reinstalling 64 bit java to see if that fixes the problem.
It should look like that : 32 30 34 38 00 32 30 34 38
So in the text area it'll show up as "2048.2048"
There's some free bytes on the side, so you can add more characters without overwriting other bytes. (4 bytes if im not wrong)
Updating to the latest 64 bit of java worked as well as putting that space in there. You may want to modify the original post. It's operational now, just need to see if it crashes out anymore. Will let you know more later. Thanks for the help.
I suggest you look at basv's linked video. It explains how to use less RAM for better results.
Although you should not need to build a bat file, as it does nothing but assign a number of RAM.
It's just a big fancy video that says use 256 RAM.
tried the 256 thing with the .exe fix still does the same old bugout after some time playing
random note: I'm a really dumbass when it comes to programming **** I don't even know how to do "hello world" in anything. (yes haha super funny) but when I press F3 whenever I adjust the memory allocation it will always show this: http://i51.tinypic.com/2v8lfdk.png
or is that 900ish mb number totally unrelated to the allocation of memory to minecraft?
Also in every try I've done minecraft will always start out at 400mb in my taskmanager going upwards to 900ish to 1100 and then crashing at a random time
Yeah sorry about the delay, if it shows around 950 ram then it means your minecraft was allowed 1GB ram.
If you've allowed anything more or less than that, whatever you're doing isnt working.
[EDIT] I have tried to allow 256MB with fixed EXE and failed. Whenever I allotted that number of RAM it ran fine but in-game showed 900MB RAM.
I've played around with the numbers, doing it with Fixed EXE ran the launcher fine but had only 900mb while doing it with a bat file, it ran but as soon as it could, popped out "Out of memory"
So i'm guessing the EXE has a procedure that tries to prevent low RAM allocation 'cause it'd crash anyway.
I dont have memory problems since i've allotted 2gb RAM with Windows 64bit and my 32bit comp although lagging, doesnt have "Out of memory" problems, so I cant find a proper number for you to enter in the fixed EXE.
I suggest you play around allocating different numbers and see for yourself.
I also suggest you try both Fixed EXE and BAT files, as I'm currently unsure how people are actually running as 256 256 RAM.
using the exact same bat file as the original "use 256MB" vid the game doesn't crash as often (like only once in a 3 hour session, and it was on an smp server with 1,9 prerelease server software and while crossing to the nether so im fine with that)
This plus the reannouncement of this "code freeze" mojang will do oct 18 till nov 18 will hopefully make all this bat/exe nonsense a thing of the past
I'm pretty sure I found another way to fix this. I have a mac and was unable to do what you did in the tutorial. Looks like .bat files don't work for mac. But I explored some more and noticed that I could change the memory allocated using mcpatcher. I went to options, and under general options I changed the "Java heap size" to 256. I played minecraft on multiplayer for about 3 hours. So far it has not crashed! Thanks for this descriptive tutorial, because I wouldn't have known what to look for without it.
Hey guys. I've been searching the internet for probably about 2 hours now trying to get a fix for my Minecraft OUT OF MEMORY screen. I do use graphics mods on occasion but it even happens without them. I've looked at the batch file method and tried pretty much every variation, getting mixed results (such as the "cannot create java virtual machine" error, the batch file saying it doesn't have enough RAM in the machine, and, when I actually get MC to run, it doesn't change the "allocated memory" from 495.) I also had a friend try out this method (he says it works) and email it to me. It didn't work for me (I got the same error message). However, he does run 64 bit while I'm stuck on lousy 32 bit. I've mostly been trying to get the 1 gig to work but when it does run MC, it doesn't change anything. I'd really appreciate any help or tips you all have :biggrin.gif: