Improving performance of Eclipse/FlexBuilder

May 13th, 2008 . by polygeek

I’m working on a Flex project that is just kicking Eclipse in the ass. It takes forever to build and I keep getting out of memory errors. Finally, I complained about the issue on Twitter and @tomcornilliac was nice enough to twit back that I needed to give Eclipse a bigger heap by editing the eclipse.ini file.

Simple enough. My eclipse.ini file is in the root folder of the Eclipse installation and looks like this:

-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m

-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true

I changed the two bolded lines to:

-Xms256m
-Xmx512m

And everything runs much faster and I haven’t gotten any of those pesky errors since.

You can also go Window > Preferences > General > Show heap status to get a display of how much RAM Eclipse has to work with and how much it’s actually using. Very handy to turn that on to see if you need to increase your RAM allowance.

Here’s a link to a few other suggested performance improvements you can do to Eclipse/FlexBuilder.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Digg
  • Facebook

4 Responses to “Improving performance of Eclipse/FlexBuilder”

  1. comment number 1 by: Xavier Agnetti

    You can also BEA JRE (JRockit) with FlexBuilder. I’ve seen a 40% improvement on build time on large projects (300k loc).

    Cheers

  2. comment number 2 by: Xavier Agnetti

    That said, it only works on Intel CPU.

  3. comment number 3 by: Jolyon

    Why the default memory settings are so low is beyond me.

    When you install FDT, it won’t let you switch to the FDT perspective without upping the RAM quotient.

    The show heap status check box is a top tip as my poor MacBook can choke on bigger projects.

    Jolyon

  4. comment number 4 by: Mike

    You could use aggressiveHeap to get the optimal settings, then h/c them. i noticed my example eclipse.ini, aggressiveHeap kinda unstable. http://eclipse.dzone.com/news/turbo-charging-eclipse

Leave a Reply

Name

Mail (never published)

Website

- Why ask? This confirms you are a human user!

   




© Copyright 2008 polyGeek.com / Dan Florio, All Rights Reserved Except Where Explicitly Stated
Web Developement Blogs - Blog Catalog Blog Directory
M2 Websites