I am running MC SMP on a Samsung laptop with 4GB memory, Win 7 Pro 64 bit, with latest Java and latest MC version (1.3.2.). All drivers up to date, blah blah.
I am using the OptiFine mod to improve frame rate, but I have to set most of the settings very low (view distance set to minimum, and other details off). No texture packs, no other mods.
If I do NOT set the distance to anything other than very low, the game crashes with an "out of memory" error message.
If I run MC without OptiFine at all, I likewise get the same message. So OptiFine is not the problem, but it's actually the only reason I can run MC at all.
I had the same problem on another laptop (an HP) also with 4GB RAM.
Therefore I think I just have my RAM allocation settings wrong, and need to adjust them. I'm just not clear on what to set them for, and whether to set them for java.exe, minecraft.exe... or something else.
I'm in a part of the world right now where buying RAM to upgrade is not a solution, so let's assume that's not an option right now.
I also use optifine with a 4G system, and I use 3G for minecraft with no major issues but a quick google turned up this on how to do it in windows
I run full view distance, and about half fancy settings on my system (max preloaded chunks, extra updates ect in optifine settings)
the only problem I have run into is with that much ram, after few hours of exploring a memory leak like issue can cause some performance issues - but no out of memory errors - that require me closing and restarting minecraft to clear some overhead ram use so 2G is probably recommended
I also use optifine with a 4G system, and I use 3G for minecraft with no major issues but a quick google turned up this on how to do it in windows
I run full view distance, and about half fancy settings on my system (max preloaded chunks, extra updates ect in optifine settings)
the only problem I have run into is with that much ram, after few hours of exploring a memory leak like issue can cause some performance issues - but no out of memory errors - that require me closing and restarting minecraft to clear some overhead ram use so 2G is probably recommended
Thanks, I remembered reading it somewhere, but a search didn't come up with that thread. That's what I was looking for!
Are you getting an OS message saying you're actually out of memory? Or if you hit f3 and look at the upper right are you using 99% of the allocated memory?
Because typically unless you have a memory leak, MC's garbage collection does a pretty decent job of keeping the usage under control.
Are you getting an OS message saying you're actually out of memory? Or if you hit f3 and look at the upper right are you using 99% of the allocated memory?
Because typically unless you have a memory leak, MC's garbage collection does a pretty decent job of keeping the usage under control.
No, I am getting the stock Minecraft crash message that says "Ran out of memory" then something about trying to salvage the game enough to return to the main menu, but then it just crashes entirely. It's a Minecraft error message, not a Windows one.
MC's memory management has been notoriously bad, and never much improved, so that's the first I've heard of it being able to keep "usage under control." In fact, that's the whole point of mods like OptiFine, which attempt to improve MC's famoulsy BAD memory usage (and coding) to make it usable on most systems.
The reason it's running out of memory is that you're giving it all the RAM the computer has, and more. When your computer runs out of RAM it starts using the HDD/SSD. Harddrives are many times slower than RAM. Try lowering the amount of RAM you're giving Minecraft to something subtle. (512mb, maybe?)
If you just run out of memory more often, try a bit more. Just find the sweet spot.
No, not giving it all the RAM I have "and more". I have 4GB,and was trying to set it to use 3GB, leaving 1 GB free.
I can lower the RAM, sure... but that's sort of not the point of my question. I am trying to INCREASE the RAM allocated to MC, to improve performance.
Interesting, though: despite following the settings on the link above, I have been monitoring the RAM usage. Even when I set it to use only 1GB, the game crashes having only used 30% or so of available RAM.
Again, I can run the game fine with settings set to minimum. I'm just trying to improve my quality here.
More interesting. Setting ANYTHING is not changing the memory allocated as reported in the game itself. Regardless of what I set, F3 still reports "Used Memory x% of 989MB" and "Allotted memory: 50% (495 MB)".
The game crashes about about 27% of used memory.
(Not a physical RAM problem, as this happened on a different system.)
Make sure that you have also installed the 64bit version of java.
if you did that, please do post the crash log it helps out a lot finding out what causes it.
I'm using 32-bit Java. I read elsewhere to avoid the 64 bit version, but I will give that a shot!
I created a BAT file, and used the settings -Xmx3072m -Xms1536m
Now MC is properly reporting the right RAM usage. I even got nutty and set the OptiFine settings to EXTREME (cue Colbert air guitar solo) and while the loading was a little choppy, it didn't crash.
Will report back if this fails, but this seems to do the trick for me. Hopefully it can help others.
I am using the OptiFine mod to improve frame rate, but I have to set most of the settings very low (view distance set to minimum, and other details off). No texture packs, no other mods.
If I do NOT set the distance to anything other than very low, the game crashes with an "out of memory" error message.
If I run MC without OptiFine at all, I likewise get the same message. So OptiFine is not the problem, but it's actually the only reason I can run MC at all.
I had the same problem on another laptop (an HP) also with 4GB RAM.
Therefore I think I just have my RAM allocation settings wrong, and need to adjust them. I'm just not clear on what to set them for, and whether to set them for java.exe, minecraft.exe... or something else.
I'm in a part of the world right now where buying RAM to upgrade is not a solution, so let's assume that's not an option right now.
Ideas?
I run full view distance, and about half fancy settings on my system (max preloaded chunks, extra updates ect in optifine settings)
the only problem I have run into is with that much ram, after few hours of exploring a memory leak like issue can cause some performance issues - but no out of memory errors - that require me closing and restarting minecraft to clear some overhead ram use so 2G is probably recommended
Thanks, I remembered reading it somewhere, but a search didn't come up with that thread. That's what I was looking for!
Following that page's advice, I am getting memory crashes again. I am certain I am setting my RAM allocation wrong. The page isn't real clear on it.
If I want 3GB RAM allocated, do I set it as 3G? That doesn't sound right, as the memory is usually not a single integer like that.
How do you have yours defined?
Because typically unless you have a memory leak, MC's garbage collection does a pretty decent job of keeping the usage under control.
No, I am getting the stock Minecraft crash message that says "Ran out of memory" then something about trying to salvage the game enough to return to the main menu, but then it just crashes entirely. It's a Minecraft error message, not a Windows one.
MC's memory management has been notoriously bad, and never much improved, so that's the first I've heard of it being able to keep "usage under control." In fact, that's the whole point of mods like OptiFine, which attempt to improve MC's famoulsy BAD memory usage (and coding) to make it usable on most systems.
No, not giving it all the RAM I have "and more". I have 4GB,and was trying to set it to use 3GB, leaving 1 GB free.
I can lower the RAM, sure... but that's sort of not the point of my question. I am trying to INCREASE the RAM allocated to MC, to improve performance.
Interesting, though: despite following the settings on the link above, I have been monitoring the RAM usage. Even when I set it to use only 1GB, the game crashes having only used 30% or so of available RAM.
Again, I can run the game fine with settings set to minimum. I'm just trying to improve my quality here.
The game crashes about about 27% of used memory.
(Not a physical RAM problem, as this happened on a different system.)
I'm using 32-bit Java. I read elsewhere to avoid the 64 bit version, but I will give that a shot!
http://muttsworldmine.com/forums/topic/136-allocate-more-memory-to-minecraft/
I created a BAT file, and used the settings -Xmx3072m -Xms1536m
Now MC is properly reporting the right RAM usage. I even got nutty and set the OptiFine settings to EXTREME (cue Colbert air guitar solo) and while the loading was a little choppy, it didn't crash.
Will report back if this fails, but this seems to do the trick for me. Hopefully it can help others.
Thanks, guys!