Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Max heap 512m(Eclipse .ini won't allow the heap to be increased)
Max heap 512m [message #1067677] Wed, 10 July 2013 04:05 Go to next message
Clay Codner is currently offline Clay CodnerFriend
Messages: 6
Registered: July 2013
Junior Member
I am trying to compile a program with a large header file, and so I tried to change the values in the eclipse.ini file. It will allow me to change all of the values except for the max heap size. That is stuck at 512 MB. If I make it any bigger, eclipse fails to start with "Failed to start the Java VM".Does anybody know a fix for this?

Thanks.
Re: Max heap 512m [message #1067944 is a reply to message #1067677] Thu, 11 July 2013 11:26 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
What did you exactly change in the eclipse.ini file? In principle, you should replace the line "-Xmx384m" with "-Xmx1024m".

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Max heap 512m [message #1067949 is a reply to message #1067944] Thu, 11 July 2013 11:56 Go to previous messageGo to next message
Clay Codner is currently offline Clay CodnerFriend
Messages: 6
Registered: July 2013
Junior Member
I only changed the numbers. Everything else is "out of the box". The settings shown below cause the error. If I change it back to -Xmx512m it works fine.


-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m
Re: Max heap 512m [message #1067990 is a reply to message #1067949] Thu, 11 July 2013 15:07 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
You should not increase the XXMaxPermSize.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Max heap 512m [message #1068049 is a reply to message #1067990] Thu, 11 July 2013 19:33 Go to previous message
Clay Codner is currently offline Clay CodnerFriend
Messages: 6
Registered: July 2013
Junior Member
I had forgotten I'd done that. Anyways - that worked. Thanks!! You rock!
Previous Topic:How to use Eclipse with OpenCV liabrary
Next Topic:Eclipse marks macros from inttypes.h as syntax errors
Goto Forum:
  


Current Time: Tue May 14 23:50:21 GMT 2024

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

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

Back to the top