Skip to main content

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: 46
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:


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: Sun May 20 14:15:54 GMT 2018

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

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

Back to the top