I'm not sure why, but for some reason I can't increase the amount of RAM Minecraft uses. When I go into the "JVM arguments" box and change the -Xmx1G to something like, -Xmx4G, and click play, I get this message:
The only reason I can think of is because of computer space, which is impossible because my computer has 750 gigabytes of data. So I'm not sure why this happens. I'd really like your help. Thanks in advance!
You are getting this error message because you are using 32bit Java and a 32bit process has to be smaller than 2G total. Which means the Java heap has to be less than ~1.5G
You are getting this error message because you are using 32bit Java and a 32bit process has to be smaller than 2G total. Which means the Java heap has to be less than ~1.5G
I haven't used 32 bit in so long, I totally forgot about that. Makes good sense, and more than likely, the problem.
You are getting this error message because you are using 32bit Java and a 32bit process has to be smaller than 2G total. Which means the Java heap has to be less than ~1.5G
I tried using both 1.5G and 1536M and neither worked.
I used ~ which means approximately. Exactly how much you can allocate depends upon which version of Java you are using (primarily), but also even which version of Minecraft you are using because the program size changes from version to version. You don't want to be too close to the line or it will just suddenly break for "no reason" some day.
Either just leave it alone or if you absolutely must play with this then switch to 64bit.
Simple. I could give a more detailed walk through if I knew what OS (operating system) you were using.
Let's just say, you are using Windows 7.
Right click on the "start" button, go down the the bottom to where it says, "Search programs and files" and type in "cmd" without the quotation marks. Select "cmd" from the search.
Once the command prompt opens, you can type in the the command I gave above.
I'm not sure why, but for some reason I can't increase the amount of RAM Minecraft uses. When I go into the "JVM arguments" box and change the -Xmx1G to something like, -Xmx4G, and click play, I get this message:
The only reason I can think of is because of computer space, which is impossible because my computer has 750 gigabytes of data. So I'm not sure why this happens. I'd really like your help. Thanks in advance!
alright so ive read the thread and its not helping. you dont have 32 bit java but to make sure open a CMD prompt this can be done by holding windows key + R and typing CMD press enter..
java -version
and find out it WILL tell you if youre running 64 bit it will say java se runtime enviroment build whatever hoping its up to date java hotspot 64 bit server if it doesnt your system isnt running 64 bit java. if it does then you have it installed and thats fine. check to make sure every single version of java in uninstalled thats NOT updated or 64bit. you MAY have a 32 bit version installed. check the file location in your minecraft and make sure its leading to your 64 bit installation. if you want more than 2GB going to minecraft your going to need to make sure minecraft is running on your 64bit java installation.
hold windows key + R type in dxdiag.. make sure your system is 64 bit if it is then good
open up minecraft and your options menu for it. at the bottom youll see java setting advanced and the check box for executable make sure it actually says that its pointing to your 64 bit installation of java . this can easily be done by locating it. its usually at C:\Program Files\Java\jre1.8.0_45\bin my folder location may be different but MAKE sure its the folder inside your "program files" not your program files x32. for my minecraft to make sure it runs on my 64 bit installation it says
C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe
so make yours read something like it.. make sure your computer also has enough ram to hold it as well. under JVM arguments is where youll put how much ram you actually want to allocate.
allocating this ram is easily done by just putting 2G or 4G -Xms2G -Xmx2G make sure its capitalized or it wont work. if you have 32 bit it wont recognize the G argument youll only be able to allocate up to 2gig anyways but it looks like this
-Xms 2048M -Xmx2048M
that makes sure you can use the whole 2 gb available to the java. use more and youll get errors or it will crash
alright so ive read the thread and its not helping. you dont have 32 bit java but to make sure open a CMD prompt this can be done by holding windows key + R and typing CMD press enter..
There is absolutely ZERO doubt that the OP IS running 32bit Java.
I'm not sure why, but for some reason I can't increase the amount of RAM Minecraft uses. When I go into the "JVM arguments" box and change the -Xmx1G to something like, -Xmx4G, and click play, I get this message:
----------------------------------------------------------------------------------
Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.
----------------------------------------------------------------------------------
The only reason I can think of is because of computer space, which is impossible because my computer has 750 gigabytes of data. So I'm not sure why this happens. I'd really like your help. Thanks in advance!
SURPRISE!!!!
Oh great, now I have to get a new computer.
-Xmx4096M -Xms4096M (or short -Xmx4G -Xms4G)
Hard drive space, and ram are 2 completely different things.
I would imagine if keeping the proper format isn't working, you probably don't have enough "free" physical ram available.
You could try doing it as: (4096M)
You are getting this error message because you are using 32bit Java and a 32bit process has to be smaller than 2G total. Which means the Java heap has to be less than ~1.5G
I haven't used 32 bit in so long, I totally forgot about that. Makes good sense, and more than likely, the problem.
I tried using both 1.5G and 1536M and neither worked.
SURPRISE!!!!
Oh great, now I have to get a new computer.
If you are using Windows, go to Command Prompt, and type or paste, " wmic OS get FreePhysicalMemory /Value ", without the quotation marks.
Post the results here.
I used ~ which means approximately. Exactly how much you can allocate depends upon which version of Java you are using (primarily), but also even which version of Minecraft you are using because the program size changes from version to version. You don't want to be too close to the line or it will just suddenly break for "no reason" some day.
Either just leave it alone or if you absolutely must play with this then switch to 64bit.
Uhh...How do you do that?
SURPRISE!!!!
Oh great, now I have to get a new computer.
Uhh...How do you do that too?
SURPRISE!!!!
Oh great, now I have to get a new computer.
Simple. I could give a more detailed walk through if I knew what OS (operating system) you were using.
Let's just say, you are using Windows 7.
Right click on the "start" button, go down the the bottom to where it says, "Search programs and files" and type in "cmd" without the quotation marks. Select "cmd" from the search.
Once the command prompt opens, you can type in the the command I gave above.
I use Windows 8. So...
SURPRISE!!!!
Oh great, now I have to get a new computer.
In Windows 8:
1. Left-Click the start button on the bottom left corner (the four squares)
2. After you are at your start screen, you should see a magnifying glass in the top-right corner, click on that
3. A search bar should slide up from the right side of your screen. In that search box type "cmd" without the quotes
4. Once a result that says "Command Prompt" (Without the quotes) comes up click on the command prompt
5. A black window should come up, in that window type up the command he told you or if I must explain this to...
6. When the black window comes up and has a blinking mouse cursor (meaning you can type in that window) type in:
wmic OS get FreePhysicalMemory /Value
then press enter and post the results here.
Don't know how else to explain it in non-technical language
alright so ive read the thread and its not helping. you dont have 32 bit java but to make sure open a CMD prompt this can be done by holding windows key + R and typing CMD press enter..
java -version
and find out it WILL tell you if youre running 64 bit it will say java se runtime enviroment build whatever hoping its up to date java hotspot 64 bit server if it doesnt your system isnt running 64 bit java. if it does then you have it installed and thats fine. check to make sure every single version of java in uninstalled thats NOT updated or 64bit. you MAY have a 32 bit version installed. check the file location in your minecraft and make sure its leading to your 64 bit installation. if you want more than 2GB going to minecraft your going to need to make sure minecraft is running on your 64bit java installation.
hold windows key + R type in dxdiag.. make sure your system is 64 bit if it is then good
open up minecraft and your options menu for it. at the bottom youll see java setting advanced and the check box for executable make sure it actually says that its pointing to your 64 bit installation of java . this can easily be done by locating it. its usually at C:\Program Files\Java\jre1.8.0_45\bin my folder location may be different but MAKE sure its the folder inside your "program files" not your program files x32. for my minecraft to make sure it runs on my 64 bit installation it says
C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe
so make yours read something like it.. make sure your computer also has enough ram to hold it as well. under JVM arguments is where youll put how much ram you actually want to allocate.
allocating this ram is easily done by just putting 2G or 4G -Xms2G -Xmx2G make sure its capitalized or it wont work. if you have 32 bit it wont recognize the G argument youll only be able to allocate up to 2gig anyways but it looks like this
-Xms 2048M -Xmx2048M
that makes sure you can use the whole 2 gb available to the java. use more and youll get errors or it will crash
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
I think it would also be fair to mention, be sure your OS is 64 bit.
If you are wanting to dedicate 4gigs of ram for Minecraft, gonna be kind of hard with the limitations of a 32 bit OS.
Just thought I'd mention that.
would also be hard if he doesnt have more than 4 gigs to work with.. why is there no dxdiag here yet? please post one if my solution doesnt work
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
Yeah, that was why I was wanting to get the "free physical" memory results. However is better to figure it out, works for me.
There is absolutely ZERO doubt that the OP IS running 32bit Java.
===========================
FreePhysicalMemory=1015624
===========================
That's 1015624 megabytes right?
SURPRISE!!!!
Oh great, now I have to get a new computer.
That answers that.
You need to get 64 bit Java.