Subscribe to RSS
get email updates
polyGeek.com
polyGeek.com polyGeek.com

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.

Post to Twitter Post to Delicious Post to Facebook Post to Reddit Post to StumbleUpon


similar posts

6 Responses to “Improving performance of Eclipse/FlexBuilder”


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

comment number 2 by: Xavier Agnetti

That said, it only works on Intel CPU.

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

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


[...] features to install and choose a new remote site. Enter http://www.kyrsoft.com/updates/ as the URL. Improving performance of Eclipse/FlexBuilder May 13th, 2008 . by [...]


[...] I found this great eclipse tip on Dan Florio’s blog [...]

   Welcome back (Change)

Leave a Reply

comment feed RSS   subscribe to this comment thread

Recent Posts

   



polyGeek.com

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

Better Tag Cloud