Home | Blog | Twitter @AndyJ | Contact Me | Snippets/Downloads | RSS

Performance settings for Eclipse on OSX

I've been adding some performance variables to my Eclipse setup and have recently learnt that on the Mac you can use an Eclipse.ini file for the settings instead of the [non-standard] Info.plist file. To open the Eclipse.ini file goto Eclipse.app >> right-click >> Show Package Contents Then navigate to /Contents/MacOS and use a text editor to open the file. Note: A single VM argument ("-vmargs") specified in Info.plist will cause all other VM arguments in the eclipse.ini to be ignored. So far from my trawlings around the web one consensus I've seen is that to improve performance you should give the VM as much ram as you can spare and and set your min and max values to the same amounts to avoid resizing. So for reference I have added the following startup variables in my ini file:
   view plainprintabout
 -Xms512m
 -Xmx512m
 -XX:PermSize=128m
 -XX:MaxPermSize=128m
 -Xverify:none
The first 4 setting change how the memory is managed. Line 5 should reduce your startup time. This parameter turns off bytecode verification. I'm not a Java expert (so please someone jump in if I am wrong) but you should only set this if you know your plugins work fine. In essence this checks for the Java language rules for safety and the code may not have been produced by a known-to-be trustworthy Java compiler meaning that you could end up crashing Eclipse as your plugin might violate access restrictions etc. If you have any more changes/updates let me know!
TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Mark Drew's Gravatar Hey man

Add this to the wiki!

MD
# Posted By Mark Drew | 2/26/07 1:59 PM
Andy Jarrett's Gravatar All done :o)

I also added some Default Browser stuff as well the other day that you might wanna glance over as my spelling/grammer is crap to say the least

http://trac.cfeclipse.org/cfeclipse/wiki/SetUpDefa...
# Posted By Andy Jarrett | 2/26/07 4:15 PM
denny's Gravatar Heh. If you're a dork like me, be sure you start eclipse through the finder, and NOT on the command-line, as it won't load up the just-edited ini file otherwise.
# Posted By denny | 7/1/07 8:15 PM
Andy J's Gravatar @Denny, you know if you prefer firing up from the command line you can just add the vars there?
# Posted By Andy J | 7/2/07 12:34 PM
Denny's Gravatar Heh, I saw that those were the only vars getting passed (none:).

I just like to add -clean sometimes... don't really like repetitive typing /that/ much. ;-)

Actually, I do -clean so often, I just added it to the init-- Eclipse still fires up blazingly fast. =]
# Posted By Denny | 7/3/07 8:13 AM
BlogCFC / created by Raymond Camden / running version 5.9.5.003 / Contact AndyJarrett.com / Pet Rescue SOS www.redgiraffes.co.uk