Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » how to set 1+GB heap size for java launched from eclipse
how to set 1+GB heap size for java launched from eclipse [message #1028682] Thu, 28 March 2013 15:55
harry sheng is currently offline harry shengFriend
Messages: 41
Registered: July 2009
Member
Hi,

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:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms128m
-Xmx4096m
-server

Thanks,
Harry
Previous Topic:Eclipse Submission Error
Next Topic:Doubling of Project Folder
Goto Forum:
  


Current Time: Thu Dec 18 07:23:53 GMT 2014

Powered by FUDForum. Page generated in 0.01391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software