Skip to main content
Participating Frequently
March 25, 2010
Question

Flash Builder 4 Extremely slow under Windows 7 + Java

  • March 25, 2010
  • 6 replies
  • 14733 views

Hello,

I have the following configuration:

Sony VAIO SZ

Intel Core 2 Duo 2.1 GHz (T8100)

4GB DDR3

NVidia 8400M GS

320GB (7200 RPM) HDD

Windows7 Ultimate (6.1.7600)

I'm trying to use Adobe Flash Builder 4 (build 272416) in Trial mode.

I was working for a long time already with the Flex Builder Plug-in 3. Compilation time was always a headache, true, but it still was affordable. But with the Flash Builder 4 production that became so bad that I can't simply use it event to test.

When started form the "clean" workspace, bundled Eclipse and only one project (Flex) is created - everything looks fine. Even if you add a "hello world" pop-up to your application (that's sarcasm, yeah 😃

The situation changes dramatically when you have any number (greater than zero of course) of Java projects in your workspace.

Compilation time skyrockets to about 1 - 2 minutes - first (on an empty project created with wizard). Second - it starts crashing with or without reason.

When I'm trying to create a new Flex project (having several Java projects in the workspace) - the moment the wizard is complete and it's going to show me the contents of the newly created MXML (yes, a few lines with no logic at all) it crashes. When I'm trying to open existing project - well, it opens, but compilation times are greater than 2 minutes (that's a tiny project with a few screens with primitive design, three AS classes and two CSS files and one image included) whenever I just put an empty string to even the main MXML.

When I'm trying to switch to design view - it crashes 80% of time. The rest 20% it show "gray field" and bugs UI completely.

When building starts - the only way to avoid it ... well ... go drink a tea. It's impossible to cancel and if I try to cancel it - it hangs forever. Only killing the eclipse process helps.

And, really, 2 minutes of compilation time? Are you serious? It's like, change the line of code, save, wait 2 minutes with 50% chance of observing never-ending activity?

Btw, I've tested the Flash Builder Beta - there were no such problems. Everything was really cool and smooth. Compilation time was even faster than Flex Builder 3. And such a surprise with the production version.

It's all with the JDK 6u14 (yes, I've tested it with the most recent one - 6u18 - the same picture).

So, is there anyone experiencing the same behavior and any hints on how to fix it? It's really annoying especially knowing and waiting to get hands on all those great SDK 4 features.

Thanks!

    This topic has been closed for replies.

    6 replies

    Participant
    March 7, 2012

    Hi all,

    I've been exeriencing major performance issue with Adobe Flash build 4.6 on windows 7 64 bits

    I've had the same issue with Eclipse before and I have used to same "fix" and it worked for me

    This is what I have done ;

    - I've installed Java 1.5.0_22  (version 5, 32 bits)  (even if it is installed in my "Program Files" directory and not in "Program Files (x86)", it is a 32 bit version)

    - I've created this launch batch file :

          set CLASSPATH=.;C:\Program Files\Java\jre1.5.0_22e\lib\ext\QTJava.zip

          set Path=C:\Program Files\Java\jre1.5.0_22\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;

          set QTJAVA=C:\Program Files\Java\jre1.5.0_22\lib\ext\QTJava.zip

           cd "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6"

          start /B FlashBuilder.exe

    - and I run Flash Builder from this batch file

    It doesn't seem to work so fine with java 6 even 32bits... but I didn't do any exaustives tests as I have a working solution.

    Gaël

    Participant
    December 15, 2010

    Flex SDK 4.x.x can be very slow in combination with SVN/CVS. I opened a bug regarding this issue. On how to fix it, see here.

    regards,

    Jiri

    Participant
    July 1, 2010

    My god, it's too slow. We can hardly to use it.... Our OS is WIN7 and XP. All are very slow...  Hardly to work...

    Participant
    July 1, 2010

    Very slow....Even if the project is clean, only exists one MXML file.

    Participant
    July 1, 2010

    Now, we go back to FB3. Everything goes to normal... Thanks..

    Participating Frequently
    March 28, 2010

    Thanks! The problem was all with embedding fonts. I'll play around with other font embedding options (like, using modules to embed and then load them etc.).

    Thank you for your help!

    Participating Frequently
    March 25, 2010

    Hello again,

    it looks like the problem is temporarily solved.

    The reason was in the following CSS part:

    @font-face

    {

    fontFamily: Calibri;

    fontWeight: normal;

    fontStyle: normal;

    src: url("assets/fonts/calibri.ttf");

    }

    @font-face

    {

    fontFamily: Calibri;

    fontWeight: bold;

    fontStyle: normal;

    src: url("assets/fonts/calibrib.ttf");

    }

    @font-face

    {

    fontFamily: Calibri;

    fontWeight: normal;

    fontStyle: italic;

    src: url("assets/fonts/calibrii.ttf");

    }

    @font-face

    {

    fontFamily: Calibri;

    fontWeight: bold;

    fontStyle: italic;

    src: url("assets/fonts/calibriz.ttf");

    }

    Once I've commented these lines - compilation is taking a few seconds. I'm going to go try fix all other compatibility issues so the project compiles without errors and check if the problem returns. And having this project in my workspace was causing the problems with creation of new projects as well. Looks really weird, but that's how the things are.

    Previously this part of code was like

    @font-face

    {

    fontFamily: Calibri;

    fontWeight: normal;

    fontStyle: normal;

    src: local("Calibri");

    }

    but that's incompatible with the updated SDK version, so I had to change them to the mentioned state. I'll keep testing the Builder behavior with these lines commented and we'll see where it leads.

    Btw, do I have some misunderstanding of the SDK 4 concept of dealing with the fonts embedding, or that's just a subject to JIRA issue? =)

    Message was edited by: Andrey Stukalenko

    Jason San Jose
    Adobe Employee
    Adobe Employee
    March 25, 2010

    Are you using a 64-bit JVM? It sounds like you're running Flash Builder Plug-in, so try this:

    1) Close Eclipse

    2) Open the eclipse.ini file where your eclipse.exe is located

    3) Add a new line after "-vmargs" and on that line type "-d32"

    4) Restart Eclipse

    A 32-bit JRE is required http://www.adobe.com/products/flex/systemreqs/. "-d32" will force your JVM into a 32-bit mode.

    You're likely seeing Design view crash because Flash Player support for 64-bit http://kb2.adobe.com/cps/000/6b3af6c9.html.

    Alternatively, you can install a 32-bit JVM and assign that to JAVA_HOME.

    Please reply if this solution works for you.

    Jason San Jose

    Software Engineer, Flash Builder

    Participating Frequently
    March 25, 2010

    Hello,

    Sorry, my bad for not specifying the environment fully - I'm using 32 bit Windows 7 and the 32-bit JVM as well.

    I've tried to play with eclipse launch settings giving it up to 2Gb of max VM memory, but nothing changed. Actually, what I observe when the build process hangs (with whatever eclipse launch settings are) is 50% processor usage and around 480 - 510 Mb memory consumption by the eclipse process.

    Thank you

    Jason San Jose
    Adobe Employee
    Adobe Employee
    March 25, 2010

    Can you post your workspace log? C:\Users\you\Adobe Flash Builder 4\.metadata\.log

    Jason San Jose

    Software Engineer, Flash Builder