1 Reply Latest reply on Jun 30, 2011 2:41 AM by Anirudh Sasikumar

    Flash Builder 4.5 crashes frequently with heap space error

    KevinMacDonald98122 Level 1

      We have a reasonably complex AIR application, but by and large I would not say it is enormous. It compiles down to an AIR file that is around 6MB. It is broken out into about 6 different modules. We have given the java VM the maximum RAM that it will utilize without complaining (somewhere around 768MB. You can't go to 1024MB or it blows up). Yet, Flash Builder crashes very frequently when trying to build, generally with "java heap space" errors. We are developing on Windows 7.


      I had hoped Flash Builder 4.5 would be an improvement over Flash Builder 4 in this regard. It in fact got worse.


      Is there any hope of seeing action on this?



        • 1. Re: Flash Builder 4.5 crashes frequently with heap space error
          Anirudh Sasikumar Adobe Employee

          Hi Kevin,


          Eliminating this completely is definitely on our radar and a high priority.


          For now, there are a couple of things you can do to reduce the occurence of out of memory errors when building:


          1. Move all embedded fonts and images into an AS class in a library project.


          2. Edit the file: C:\Program Files\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\.options in wordpad. Setting, useGlobalSwcCache and useApplicationCache to false will reduce the overall memory consumed, but decrease performance.


          P.S: Please note that 2 is not officially supported or tested. If those options were, they would have been in preferences.