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.
This topic no longer distributes the modified EXE
Although still explains how to do it yourself.
Video tutorial can now be found at the bottom of my post.
For some people, below may look a bit complicated, but really.
It's just opening a file with a good text editor (HEX) modifying a number and saving the file.
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.
#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 :
Before v
After ^
#8 Save the file.. :dry.gif:
Alloted ram numbers example :
128,256,384,512,640,768,896,1024,1280,1536,2048,4096,8192.
Now that modified .exe is ready to be launched with 2gb of rams.
For "virtual machine could not be created" problems.
Things to try if it still fail in no particular order :
- If using 64bit, make sure to download JAVA from 64bit browser.
- You may want to download JDK instead of JRE
- Make sure you are not using all the ram available for minecraft, leaving nothing for your windows processes.
- Update/Reinstall Java
- Enable "Run as administrator" on java executives.
- Set less RAM Ex: 256 512
if problem persist, you either don't have enough RAM or something fishy is going on with your java.
32Bit Windows cannot allow Minecraft more than 1280 MB RAM (Tested on 1 local machine)
At least now you know it's not an issue with the bat file syntax.
Downloadable 1360x768 video tutorial : TutT3.mp4 (Save link as..) (23MB)
Youtube video tutorial :
(I suggest you click twice to go on youtube and be able to watch it fullscreen with 720p)
Thanks to BlueDrache for the input, Original post edited. Thanks to IronWaffle for the free HEX editor link and popularizing this method. Edited Original post with one link epikal provided.
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.
Unfortunately I have not came across any topics that could fix your problem.
If you've allowed the maximum number of RAMs possible on Windows 32bit and it still runs out of memory, you may want to try to allow less RAM, like 256 512. I've heard it helped some people.
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
Greetings everybody, I'm havin this issue too but when I open minecraft.exe with the hex editor and search for 512 it find me a line that start with 2bf98 instead of the one shown in the video.
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:
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.
This topic no longer distributes the modified EXE
Although still explains how to do it yourself.
Video tutorial can now be found at the bottom of my post.
---------------------------------------------------------------
For some people, below may look a bit complicated, but really.
It's just opening a file with a good text editor (HEX) modifying a number and saving the file.
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.
(Tutorial re-worked for XVI Editor)
#1 Use a good text editor or an HEX editor
#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 :
Before v
After ^
#8 Save the file.. :dry.gif:
Alloted ram numbers example :
128,256,384,512,640,768,896,1024,1280,1536,2048,4096,8192.
Now that modified .exe is ready to be launched with 2gb of rams.
---------------------------------------------------------------
For "virtual machine could not be created" problems.
Things to try if it still fail in no particular order :
- If using 64bit, make sure to download JAVA from 64bit browser.
- You may want to download JDK instead of JRE
- Make sure you are not using all the ram available for minecraft, leaving nothing for your windows processes.
- Update/Reinstall Java
- Enable "Run as administrator" on java executives.
- Set less RAM Ex: 256 512
if problem persist, you either don't have enough RAM or something fishy is going on with your java.
32Bit Windows cannot allow Minecraft more than 1280 MB RAM (Tested on 1 local machine)
At least now you know it's not an issue with the bat file syntax.
Downloadable 1360x768 video tutorial : TutT3.mp4 (Save link as..) (23MB)
Youtube video tutorial :
(I suggest you click twice to go on youtube and be able to watch it fullscreen with 720p)
Speed Guide
Wiki HEX
XVI32 HEX Editor's website
Thanks to BlueDrache for the input, Original post edited.
Thanks to IronWaffle for the free HEX editor link and popularizing this method.
Edited Original post with one link epikal provided.
i use this in my .bat, also have saves on a ram disk.
@ECHO OFF
java -Xmx2048M -Xms1024M -jar "C:\Minecraft.exe"
i have 8GB, minus the 1GB for the ramdisk
*note i put my mc.exe in C:\ for simplicity in the .bat.
*also my mc can use around 4-5gb with these limits...
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)
http://postimage.org/image/9jsqqhms/
I've updated the original post with video tutorial.
Hopefully I wasnt too fast on the video.
Anyhow I believe you can pause and rewind.
If you've allowed the maximum number of RAMs possible on Windows 32bit and it still runs out of memory, you may want to try to allow less RAM, like 256 512. I've heard it helped some people.
Otherwise, you did run out of.. luck.. :cool.gif:
since it gives me the "cannot create virtual machine" with anything higher then 1024
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.
In his video he tried 256 256
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
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.
This is my working bat file, if it helps.
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
thanks for the help !
Thanks in advance!