Skip to main content



      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 00:05 Go to next message
Eclipse UserFriend
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 07:26 Go to previous messageGo to next message
Eclipse UserFriend
What did you exactly change in the eclipse.ini file? In principle, you should replace the line "-Xmx384m" with "-Xmx1024m".
Re: Max heap 512m [message #1067949 is a reply to message #1067944] Thu, 11 July 2013 07:56 Go to previous messageGo to next message
Eclipse UserFriend
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 11:07 Go to previous messageGo to next message
Eclipse UserFriend
You should not increase the XXMaxPermSize.
Re: Max heap 512m [message #1068049 is a reply to message #1067990] Thu, 11 July 2013 15:33 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 11:41:18 EDT 2025

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

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

Back to the top