Eclipse and Maclipse on Mac OS X – Memory Problems

Posted by the dood on Thursday, April 5th, 2007

Lately I’ve been running Maclipse on a new iMac running the new dual core pentium chips, and 2 gigs of ram. Figured that if my windows machine running the same config could do it, the Mac could do it better, right? nope. The mac has TONS of problems with Memory. Its running Eclipse 3.2.2 right now, and I’ve gotten it to be somewhat stable finally. The site that I am using for subversion and cvs is huge, we’re talking about 30,000+ files.. .maybe more.

I found two variables that can be changed:
1. go to Maclipse in the applications folder, right-click and “Show package contents”
2. go to Contents > double-click info.java.plist – then open up root and VMoptions.
3. replace -Xmx256m with -Xmx512m or even higher to -Xmx1024m

That one did not help me much, so i adjusted the MaxPerm in the ini file.

1. Show package contents again
2. go to Contents > Resources > Java
3. double-click eclipse.ini

This is what my file looks like:

-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3.2.0.v20060329b/jdi.jar
-Xms512m
-Xmx1024m
-XX:MaxPermSize=512m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.internal.carbon.noFocusRing

Now that’s working really well for me now, but i still have a problem when i do a “open resource” and enter an asterisk in there… but if anyone has some ideas on this, please feel free to share.

Leave a Reply