Out of memory - error. Solution for 64bit w7 users.
#1
Posted 29 September 2011 - 09:49 PM
I game on a core i7 with 6 gigs of ram and the gtx465 and windows 7 64 bit and I couldn't for the life of me figure out what was causing the 'Minecraft has run out of memory' crash every half an hour. To the googlecopter I went and found a temporary solution - decrease the view distance from far to normal. That sort of fixed it, but I'd still crash every hour or so. Later on, when more and more people posted this problem, I tried the magic trick of simply giving Java more ram-nomnom to spend but that dind't work either. As I was fiddling about wiht the Java console panel I realised that it said 'Java (32bit)' in the control panel and was wondering why, so I googled a bit more and figured out that for some reason Firefox screws up with the auto install Java guide and only installs 32bit. So I got rid of Java completely, then installed Java 64bit (even though my firefox is 32bit it's not causing any problems) and voila, I've not had a crash or invisible and disappearing objects, or those annoying empty tiles that let you look through the world and kind of spoil the underground adventuring. In fact it even upped my fps. It might very well be the solution to your problems, providing you're using Firefox and windows 7 :-).
So here's a quick and easy guide on how to do this for people who don't know much about these things:
1. Start>Control Panel>Java -- it should state which version of Java you're using.
2. Close down any programs you're running, that being browsers or anything else.
3. Start>Type in: remove programs and click 'Add or remove programs'
4. Scroll down (or press j) to find Java. Right click and select uninstall. When it's done, I recommend a reboot but it's not necessary.
5. Open Internet Explorer (not Firefox as it doesn't show the (64bit) for some reason) and go to Java's manual downloads and choose 'Windows 7, XP Offline (64-bit) filesize: 16.1 MB'.
6. Install when it's done downloading and enjoy Minecraft on far with full fps and without all the annoying crashes and odd graphical fuckups.
Hope this can help some other frustrated miners out, it has definitely increased my gaming experience.
Ask if you got any questions, and I'll answer what I can, and tell me if I forgot anything.
#2
Posted 29 September 2011 - 10:22 PM
Minecraft Saver World Recovery Website: http://mcsaver.net. Recover and save your precious worlds! Over 1500 saved!
#3
Posted 29 September 2011 - 10:41 PM
voordal, on 29 September 2011 - 10:22 PM, said:
Where? Because I've been looking into this for ages and all I've ever seen is people making insane workaround batch files and shit, enough to confuse the common noob.. I've not seen this suggested anywhere.
#4
Posted 29 September 2011 - 11:00 PM
Kvnt, on 29 September 2011 - 09:49 PM, said:
I had similar frustrations to you when I tried to get Minecraft working with 64-bit Java. The biggest problem I had was with Step 5. If you load that page in Firefox it only gives you links to the 32-bit version of Java but nowhere on the page is this made clear. I'll add a few tips to your list:
1. The download for Sun Java 64-bit for Windows is "jre-6u27-windows-x64.exe". If the file you downloaded does not contain "-x64" then you have downloaded the 32-bit version.
2. Many people will want to run both 32-bit and 64-bit Sun Java (32-bit Java is required for 32-bit browsers). If you have both 32-bit and 64-bit Java installed then Minecraft will use the 32-bit Java by default. You can ensure that Minecraft is using 64-bit Java by creating a shortcut that calls 64-bit Java. A good tutorial on how to do this is here:
http://forum.precipi...noob-for-noobs/
3. Sun Java 64-bit is installed in "C:\Program files\Java\jre6\bin". If you cannot find this folder then you do not have the 64-bit version of Java installed. The 32-bit version of Sun Java is installed in "C:\Program files (x86)\Java\jre6\bin". If you are using a shortcut or batch file to launch Minecraft make sure your shortcut points to the 64-bit version in "C:\Program files\Java\jre6\bin".
4. You can adjust the amount of memory allocated to Minecraft by adjusting the launch parameters in the shortcut you created in Tip 2. Your shortcut target will look something like this:
"C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024M -Xms512M -cp Minecraft.exe net.minecraft.LauncherFrame
The -Xmx1024M and -Xms512M parameters can be changed to increase or decrease the amount of memory available to Minecraft. The most important parameter is -Xmx1024M. This changes the total amount of memory available to Minecraft. The other parameter -Xms512M adjusts the amount of memory Minecraft will initially use. The numbers (1024 and 512) represent the amount of memory (in Megabytes) that is to be used. You can adjust these numbers to increase available memory. In the example below I have changed the values so that Minecraft will use 1024MB of memory on startup with up to 2048MB available.
"C:\Program Files\Java\jre6\bin\java.exe" -Xmx2048M -Xms1024M -cp Minecraft.exe net.minecraft.LauncherFrame
I would recommend most people use -Xms1024M as the value for the amount of memory Minecraft uses on startup.
The maximum memory used should be adjusted according to the amount of memory you have in your computer balanced with the likely memory requirements for Minecraft. If you try to allocate more memory to Minecraft than is actually available then Minecraft won't start. The values in the example should be good enough for most people. If you experience crashes then increase the -Xmx2048M parameter.
5. Check that the memory you allocated actually shows up in game by pressing F3. The settings should match what the parameters you set in Tip 4.
#5
Posted 29 September 2011 - 11:16 PM
voordal, on 29 September 2011 - 10:22 PM, said:
I read through several guides on this subject and I still had problems. Most of the guides tell you to download 64-bit Java but don't explicitly give you the names/sizes of the file you need to download. I suspect that Kvnt and I aren't the only ones who have experienced these frustrations.
#6
Posted 29 September 2011 - 11:22 PM
gtaylor, on 29 September 2011 - 11:00 PM, said:
1. The download for Sun Java 64-bit for Windows is "jre-6u27-windows-x64.exe". If the file you downloaded does not contain "-x64" then you have downloaded the 32-bit version.
2. Many people will want to run both 32-bit and 64-bit Sun Java (32-bit Java is required for 32-bit browsers). If you have both 32-bit and 64-bit Java installed then Minecraft will use the 32-bit Java by default. You can ensure that Minecraft is using 64-bit Java by creating a shortcut that calls 64-bit Java. A good tutorial on how to do this is here:
http://forum.precipi...noob-for-noobs/
3. Sun Java 64-bit is installed in "C:\Program files\Java\jre6\bin". If you cannot find this folder then you do not have the 64-bit version of Java installed. The 32-bit version of Sun Java is installed in "C:\Program files (x86)\Java\jre6\bin". If you are using a shortcut or batch file to launch Minecraft make sure your shortcut points to the 64-bit version in "C:\Program files\Java\jre6\bin".
4. You can adjust the amount of memory allocated to Minecraft by adjusting the launch parameters in the shortcut you created in Tip 2. Your shortcut target will look something like this:
"C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024M -Xms512M -cp Minecraft.exe net.minecraft.LauncherFrame
The -Xmx1024M and -Xms512M parameters can be changed to increase or decrease the amount of memory available to Minecraft. The most important parameter is -Xmx1024M. This changes the total amount of memory available to Minecraft. The other parameter -Xms512M adjusts the amount of memory Minecraft will initially use. The numbers (1024 and 512) represent the amount of memory (in Megabytes) that is to be used. You can adjust these numbers to increase available memory. In the example below I have changed the values so that Minecraft will use 1024MB of memory on startup with up to 2048MB available.
"C:\Program Files\Java\jre6\bin\java.exe" -Xmx2048M -Xms1024M -cp Minecraft.exe net.minecraft.LauncherFrame
I would recommend most people use -Xms1024M as the value for the amount of memory Minecraft uses on startup.
The maximum memory used should be adjusted according to the amount of memory you have in your computer balanced with the likely memory requirements for Minecraft. If you try to allocate more memory to Minecraft than is actually available then Minecraft won't start. The values in the example should be good enough for most people. If you experience crashes then increase the -Xmx2048M parameter.
5. Check that the memory you allocated actually shows up in game by pressing F3. The settings should match what the parameters you set in Tip 4.
Your #1 is exactly what my #5 says - 5. Open Internet Explorer (not Firefox as it doesn't show the links properly for some reason) and go to Java's manual downloads and choose 'Windows 7, XP Offline (64-bit) filesize: 16.1 MB'. - It does show in IE :-).
The memory allocation bit is exactly what I did which didn't need doing - I don't know if this will have any positive effect when the problem is solved by 64bit? Is there a point to it or do you just mean that it's another fix to try out?
Quote
2. Many people will want to run both 32-bit and 64-bit Sun Java (32-bit Java is required for 32-bit browsers). If you have both 32-bit and 64-bit Java installed then Minecraft will use the 32-bit Java by default. You can ensure that Minecraft is using 64-bit Java by creating a shortcut that calls 64-bit Java. A good tutorial on how to do this is here:[link]
3. Sun Java 64-bit is installed in "C:\Program files\Java\jre6\bin". If you cannot find this folder then you do not have the 64-bit version of Java installed. The 32-bit version of Sun Java is installed in "C:\Program files (x86)\Java\jre6\bin". If you are using a shortcut or batch file to launch Minecraft make sure your shortcut points to the 64-bit version in "C:\Program files\Java\jre6\bin".
I don't know if using both 32 and 64bit Java makes a difference than just installing 64bit - it hasn't for me yet though I don't really use Java enough or know enough about it to say anything but my experience which is no obvious difference with 64bit Java and 32bit Firefox.
#7
Posted 29 September 2011 - 11:28 PM
Adding this explained clearly would be good.
It is a known fix and recommend for other issues too, but it isn't very clear I guess, none if it is really.
I tend to tell people to get the Windows x64 package from here:
Java SE Runtime Environment 6 Update 27
or
Java SE Runtime Environment 7
These will change, but at least I can see the links as a Linux user!
#8
Posted 29 September 2011 - 11:57 PM
Kvnt, on 29 September 2011 - 11:22 PM, said:
That because it was my number one problem.
Quote
Just running Minecraft with 64-bit Java will increase the memory allocated to Minecraft. I just tested this and with 32-bit Java Minecraft allocates 910MB of memory, with 64-bit it allocates 1351MB. If you are only just running out of memory (say Minecraft needs 950MB) then simply moving to 64-bit may very well be enough. If you are using Mods which require more memory than is allocated by default then you can manually allocate more as shown.
Quote
You need 32-bit Java only if you are running a 32-bit browser. If you only ever use 64-bit Internet Explorer or 64-bit Firefox then you don't need 32-bit Java. Many people (such as myself) will want to run a 32-bit browser and therefore need both versions of Java.
epikal, on 29 September 2011 - 11:28 PM, said:
Java SE Runtime Environment 6 Update 27
or
Java SE Runtime Environment 7
Great links. Makes it very obvious which version you are downloading.
#9
Posted 29 September 2011 - 11:59 PM
epikal, on 29 September 2011 - 11:28 PM, said:
Adding this explained clearly would be good.
It is a known fix and recommend for other issues too, but it isn't very clear I guess, none if it is really.
I tend to tell people to get the Windows x64 package from here:
Java SE Runtime Environment 6 Update 27
or
Java SE Runtime Environment 7
These will change, but at least I can see the links as a Linux user!
You mean four Java guides in the support section of the forums?
I wouldn't recommend getting JRE 7 to be honest, it's not officially released yet as it's not been tested extensively.
#10
Posted 30 September 2011 - 12:02 AM
gtaylor, on 29 September 2011 - 11:57 PM, said:
Just running Minecraft with 64-bit Java will increase the memory allocated to Minecraft. I just tested this and with 32-bit Java Minecraft allocates 910MB of memory, with 64-bit it allocates 1351MB. If you are only just running out of memory (say Minecraft needs 950MB) then simply moving to 64-bit may very well be enough. If you are using Mods which require more memory than is allocated by default then you can manually allocate more as shown.
You need 32-bit Java only if you are running a 32-bit browser. If you only ever use 64-bit Internet Explorer or 64-bit Firefox then you don't need 32-bit Java. Many people (such as myself) will want to run a 32-bit browser and therefore need both versions of Java.
-I thought you meant my guide didn't mention your #1. My mistake :-).
I'll add the memory bit along with what you wrote before if that's alright, I've never used any mods so I've never had the need for this.
And I am running a 32bit browser, but what I mean is that it's made no difference for me so far using 64bit Java with a 32bit browser.
#11
Posted 30 September 2011 - 12:27 AM
Kvnt, on 30 September 2011 - 12:02 AM, said:
You are welcome to copy or quote anything you find useful.
Quote
Are you using any sites that require Java? Try going to the following page:
http://java.com/en/d...ad/testjava.jsp
This will tell you whether Java is working in your browser.
I also cannot play Minecraft in my browser without 32-bit Java.
#12
Posted 30 September 2011 - 01:28 AM
Kvnt, on 29 September 2011 - 10:41 PM, said:
#13
Posted 30 September 2011 - 01:29 PM
#14
Posted 20 February 2012 - 02:12 AM
Kvnt, on 29 September 2011 - 09:49 PM, said:
When i click on the shortcut it opens a console window which sort of annoys me, do you know of a way to hide that window? (completely not just minimize it)
#15
Posted 05 March 2012 - 07:26 AM
IceHunter, on 20 February 2012 - 02:12 AM, said:
In your shortcut change java.exe to javaw.exe. ie.
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms512M -cp Minecraft.exe net.minecraft.LauncherFrame
#16
Posted 16 May 2012 - 10:28 PM
Any help?
Curse
MMO-Champion
WowStead
Arena Junkies
Minecraft Forums
DarthHater
Diablo Fans
Terraria Online








