Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

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 plain print about
1-Xms512m
2-Xmx512m
3-XX:PermSize=128m
4-XX:MaxPermSize=128m
5-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!

Comments Comments (5) | Print Print | Send Send | 5628 Views

Hey man

Add this to the wiki!

MD
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...
denny's Gravatar Posted By denny @ 7/1/07 8:15 PM
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.
@Denny, you know if you prefer firing up from the command line you can just add the vars there?
Denny's Gravatar Posted By Denny @ 7/3/07 8:13 AM
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. =]
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .