Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

If you ever need to increase Eclipse 3.1's startup min max memory settings consider modifying the vm settings in the file eclipse.ini to increase your memory heap.

While Eclipse 3.1's default memory size has been increased to 40M minimum heap and 256M maximum heap, it may not be sufficient . In my case, my JVM continually crashed when loading up Sakai projects--the result perhaps of extending the Eclipse IDE to use MyEclipse 4.0 M2 (although my JVM continued to implode even after deactivating a gaggle of MyEclipse Genuitec plugins normally activated on startup). Changing my startup min max memory settings appears to have righted the good ship Eclipse so I thought I would share my experience.

To change Eclipse's default min and max memory size settings, edit the file eclipse.ini. Editing this file represents a change from earlier versions of Eclipse, where startup settings were stored in Info.plist. Indeed, Info.plist includes the warning note:

<!-- WARNING:
If you try to add a single VM argument (-vmargs) here,
*all* vmargs specified in eclipse.ini will be ignored.
We recommend to add all arguments in eclipse.ini
-->

Finding eclipse.ini is a wee bit tricky. To locate it, right-click on the Eclipse Application icon and select "Show Package Contents", then double-click on the "Contents" folder and then double-click on the "MacOS" folder, the home of eclipse.ini. You can then edit the settings as I did below setting the min and max memory settings according to your evaluation of what your system requires.

You can also startup eclipse from the command line with appended -vmargs arguments but I'll leave it to others to outline that procedure.

My IDE:
Eclipse SDK Version: 3.1.0 Build id: I20050627-1435
MyEclipse 4.0 M2 Build id: 20050627-4.0-Milestone-2

eclipse.ini
location: eclipse/Eclipse.app/Contents/MacOS/eclipse.ini

My changes (for the moment):

-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3.1.0/jdi.jar
-Xms256m
-Xmx512m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.internal.carbon.noFocusRing

Default settings

Unknown macro: {noformats}

-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3.1.0/jdi.jar
-Xms40m
-Xmx256m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.internal.carbon.noFocusRing


  • No labels