If I change the amount of ram that minecraft uses, my client crashes and an error message appears that says "Java was unable to create virtual machine". I increased the ram amount from 1g to 8g. I have 16g installed on my computer with an Intel i7 4 core. I tried to move it to 4g then to 2g. Same crash every time... What's happening?!
I also have this problem, every time i try to push passed 1gb.. i have no idea why and did the rubbish thing of just settling for only a gig.. would quite like to know if there is a work around myself
If I change the amount of ram that minecraft uses, my client crashes and an error message appears that says "Java was unable to create virtual machine". I increased the ram amount from 1g to 8g. I have 16g installed on my computer with an Intel i7 4 core. I tried to move it to 4g then to 2g. Same crash every time... What's happening?!
If you are using 32 bit java, it limits you to 1gb, you need 64 bit java.
You are probably using 32 bit Java, which has a limit of 2 GB for the entire Java process, which includes not just the heap (the part you actually change when you allocate memory) but everything else Java needs to run.
Incidentally, why are you trying to allocate more memory? I have no problems whatsoever when running with just 512 MB allocated (including a modded version, albeit with default texture size, which only needs around 250 MB as reported on the debug/F3 screen - note - the first number next to "used memory", not the second, which is the total, or the allocated value; for example, this screenshot shows 138 MB of actual memory being used), and Optifine actually recommends to allocate just 350 MB:
Lauch Minecraft with less memory (yes, really). Usually it does not need more than 350 MB and runs fine on all settings with the default texture pack. By default java allocates way too much memory (1GB) which may get swapped to disk and the overall performance may suffer a lot.
I mean, really, the "allocate more memory for more FPS" meme has got to be the worst and most oversuggested "optimization" out there, regardless of how much RAM your computer has or your Java version - programs just won't use more more if you allocate more; what do you expect Minecraft to do with extra memory? Do you expect a program to use all of your hard drive space even though it only needs, say, 1 GB? Same with RAM.
BTW, remember the warning you got on Far render distance on 32 bit Java in older versions? Well, that definitely has merit as I sometimes get severe lag followed by out of memory when using Far when testing in Minecraft Coder pack (at least when when working on a mod that has far more blocks than Amplified), which allocates 1 GB - but no trouble at all with the lower memory limit I use while playing - so that warning is really because Mojang/Java allocates too much memory by default (again, the Java heap takes away memory needed by other things; it would really do everybody good if Java only allocated what the program actually needs - like almost every other non-Java program out there).
Note: are you SURE you are using 32 bit Java? You can have it on a 64 bit system, or both, and Minecraft is using the 32 bit version (I only have 32 bit because my OS is 32 bit).
If you are using 32 bit java, it limits you to 1gb, you need 64 bit java.
Thanks, I am pretty sure I have 64 bit java because my system is 64 so I try to male sure all my programs are 64 but I will definitely check that. Thanks again!
Thanks, I am pretty sure I have 64 bit java because my system is 64 so I try to male sure all my programs are 64 but I will definitely check that. Thanks again!
Its good to have both too. Did you click the "all java downloads" (or somthing like that) on the download page? The big red button just gives you the 32 version
If you are using 32 bit java, it limits you to 1gb, you need 64 bit java.
MEEAP
Incidentally, why are you trying to allocate more memory? I have no problems whatsoever when running with just 512 MB allocated (including a modded version, albeit with default texture size, which only needs around 250 MB as reported on the debug/F3 screen - note - the first number next to "used memory", not the second, which is the total, or the allocated value; for example, this screenshot shows 138 MB of actual memory being used), and Optifine actually recommends to allocate just 350 MB:
I mean, really, the "allocate more memory for more FPS" meme has got to be the worst and most oversuggested "optimization" out there, regardless of how much RAM your computer has or your Java version - programs just won't use more more if you allocate more; what do you expect Minecraft to do with extra memory? Do you expect a program to use all of your hard drive space even though it only needs, say, 1 GB? Same with RAM.
BTW, remember the warning you got on Far render distance on 32 bit Java in older versions? Well, that definitely has merit as I sometimes get severe lag followed by out of memory when using Far when testing in Minecraft Coder pack (at least when when working on a mod that has far more blocks than Amplified), which allocates 1 GB - but no trouble at all with the lower memory limit I use while playing - so that warning is really because Mojang/Java allocates too much memory by default (again, the Java heap takes away memory needed by other things; it would really do everybody good if Java only allocated what the program actually needs - like almost every other non-Java program out there).
Note: are you SURE you are using 32 bit Java? You can have it on a 64 bit system, or both, and Minecraft is using the 32 bit version (I only have 32 bit because my OS is 32 bit).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Its good to have both too. Did you click the "all java downloads" (or somthing like that) on the download page? The big red button just gives you the 32 version
MEEAP