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 Go to next message
harry sheng is currently offline harry shengFriend
Messages: 42
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
Re: how to set 1+GB heap size for java launched from eclipse [message #1722629 is a reply to message #1028682] Sun, 07 February 2016 11:52 Go to previous message
andre silva is currently offline andre silvaFriend
Messages: 3
Registered: February 2013
Junior Member
Hi Harry,

were you able to solve this? I'm having the exact same issue..
Previous Topic:Apply patch error
Next Topic:Quality and future of eclipse as IDE (for Java)
Goto Forum:
  


Current Time: Fri May 27 04:42:01 GMT 2016

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

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