Windows Eclipse Configuration For FDT

After a lot of trouble with the Eclipse IDE I switched my JVM last night to JRockit and everything seems to be much faster now. If you have a Windows machine and an Intel CPU I can only suggest you to try the same.

I do not know if all settings are completly correct but after trying lots of different configurations this seems the be the best for me. You can find those settings in the eclipse.ini which is located in your Eclipse installation directory.


-vm PATH_TO_JROCKIT_INSTALLATION\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC

5 Responses to “Windows Eclipse Configuration For FDT”


  • Yeah…after having Ant builds fail on some larger projects, I changed my settings to the following:

    -Xms256m
    -Xmx512m
    -XX:MaxPermSize=512m
    -XX:PermSize=256m

    I haven’t had any problems since. Thanks for the tip on JRockit though; I will give that a try.

  • You should definitly change the GC by using -XX:+UseParallelGC. That makes sense even without using JRockit.

  • execuse me, i am new user of wiiflash server
    i had try the demo on the flash cs3
    but i dont know how to get led ir value?
    can you teach me?
    thank you very much

  • Great tip, thanks! I’ve installed JRockit (after the annoying registration at the Oracle website) and it feels faster now to use Eclipse/FDT! Do you use the 32bit or 64bit version?

    This optimization decreased build time with Ant/MXMLC on a standard Flex project from 7 seconds to 5-6 seconds. Still slow but a step forward.

    Giving Eclipse 1GB is quite a lot IMHO. I’m wondering what does it even need 512MB for but I guess that’s the big minus with Java! It’s a memory hog en gross!

  • Seems that there is no relation to compile time after all. On a second run the same project took 17s(!!) to compile …

    [flextasks.mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\Flex SDK\3.2.0\frameworks\flex-config.xml
    [flextasks.mxmlc] Initial setup: 27ms
    [flextasks.mxmlc] Loaded 12 SWCs: 1089ms
    [flextasks.mxmlc] Files: 868 Time: 12546ms
    [flextasks.mxmlc] Linking… 30ms
    [flextasks.mxmlc] Optimizing… 2049ms
    [flextasks.mxmlc] SWF Encoding… 720ms
    [flextasks.mxmlc] C:\Users\sascha\Documents\Eclipse\foo\bin\app.swf (885610 bytes)
    [flextasks.mxmlc] Total time: 16465ms
    [flextasks.mxmlc] Peak memory usage: 448 MB (Heap: 309, Non-Heap: 139)

    Launch Debug:
    [echo] Opening app.swf in Flash Player (Debug) …
    BUILD SUCCESSFUL
    Total time: 17 seconds

    … This is horrendous! I’d love to know how to get compile times faster with MXMLC when using an Ant build file! In case anyone has any tricks up the sleeve!

Leave a Reply