|how to set 1+GB heap size for java launched from eclipse [message #1028682]
||Thu, 28 March 2013 15:55
| harry sheng
Registered: July 2009
I want to set the heap size to 2+ GB when I "run" one of my projects from inside eclipse.
I'm running 64-bit eclipse juno-sr2 on 64-bit JDK7 on 64-bit windows 8. I have a total of 24GB memory installed. There's plenty of physical memory available for eclipse.
It seems the maximum heap size I can set in the "run configure" is 1024m. Any size greater than that ends up with the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Here is the parameters in the run configure:
-server -Xms512M -Xmx2048M
Here is what I have in the eclipse.ini:
Powered by FUDForum
. Page generated in 0.01467 seconds