I am trying to allocate 2 gigabytes of ram for a java application launched from a bat file using this line of code:
@echo off "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx2G -Xms1G -jar craftbukkit-1.2.5-R4.0.jar pause
When I try to run it like this, it spits out an error:
Error occurred during initialization of VM Could not reserve enough space for object heap Could not create teh Java virtual machine Press any key to continue . . .
I currently have 8 gigabytes of bar on my computer, and I know that I use a maximum of 3 concerts at any time (I let the computer sit for the most part, just by running this server file). I have 2x4gig sticks from a bar, so I know that it has not been separated, and I know that I have enough free sheep to distribute so why not let me? I can allocate 1536M (1.5 gigs) and lower, but if I switch to 2G, it will give me this error. Any help is appreciated
source share