Skip to main content
April 25, 2012
Question

Flash Builder 4.6 Java Heap Space Error

  • April 25, 2012
  • 2 replies
  • 13243 views

Hi,

I get this error "Java Heap Space" when trying to clean build (or build in any way) my project.

I have a lot of embeded assets (png, mp3 and some binary files embeded to be read as a ByteArray) which total about 37 MB. Including one more 1.6MB binary asset causes this error to occur.

I have tried to change my memory settings about (-Xmx and -Xms) as previous posts have suggested but this doesn't seem to make any difference.

Is there any patch or solution to this very frustrating limitation of Flash Builder?

Thanks for any help!

Tom

This topic has been closed for replies.

2 replies

Participating Frequently
November 13, 2012

I constantly had issues with this.  I managed to run into the max for increasing the heap space.  I was able to get beyond the limit by flagging the FlashBuilder.exe file to allow it to allocate to higher memory address ranges.  I'm on a 64 bit machine, so the only limitation was the 32 bit FlashBuilder process.  Anyways i was able to get from 1024m up to 1720m.  Also note that FlashBuilder 4.7 Beta is out and it is a native 64 bit application, so you will get higher addressing there.  I just found it to be too buggy for my every day development tasks.  Also missing the Design view really hurts development.  I hope they put that back in.

Here's more detail on how I got beyond the java heap ceiling.

http://chrsmrtn.azurewebsites.net/flash-builder-java-heap-errors-limitations-of-xms-and-xmx/

April 25, 2012

Hmm - When I break my 1.6MB binary file into 3 separate ~0.5MB files then it works and I don't get the heap error message. This kind of seems strange, but I guess I'll keep working and see if I come across any more limits.

This heap error bug is very painful though. I've had to keep changing my architecture over and over again to get around problems and limitations with Flash Builder. This seems rediculous to me, but I'll have to plod along with what it is...

May 24, 2012

Ditto. I was doing just fine with my Flex Mobile app... till I started blitting and converted my MovieClips to embeded SpriteSheets... Now I get a heap error when code hints run, I compile, etc, etc.