Flex 3.1 - Java heap space error

Hello,

When I try to do a full rebuild of my project containing a lot of flex modules I always get

"Error: Java heap space"

After that happens all other builds, including those of individual modules that could be build before the complete rebuild, fail.

I have already changed the Java heap in fcsh to 1Gb (which did make the build run it a little further along). Increasing more is not really an option given my hardware.

is there anything I can do to make complete rebuild possible and still have an IDE after that that is useable?

Thanks,

Peter

13 comments
Comment actions Permalink

Hi Peter!

Do you mean that you have edited {Flex SDK}/bin/jvm.config file and
fixed it like this:

java.args=-Xmx1024m ...

and it didn't help?

0
Comment actions Permalink

I changed both  {Flex SDK}/bin/jvm.config and  {Flex SDK}/bin/fcsh (note I work on MacOS). The result was that more modules got build but that eventually the heap space error still popped up.

Peter

0
Comment actions Permalink

IDEA uses {Flex SDK}/bin/jvm.config for any OS.
Well, Flex Compiler Shell is known to have memory leaks. You may try
more recent Flex SDK though I'm not sure leaks are fixed there. Is there
anything suspicious in Messages toolwindow that could probably point how
compilation can be improved? How much memory is enough for FlexBuilder
to compile all your stuff?

0
Comment actions Permalink

Flex Builder compiles everything with 1Gb. I did switch to the latest stable (3.3) Flex SDK but that did not really help all that much.

No message telling me how to optimize the build process as far as I can see.

It's a pity there is no way I can force a restart of fcsh somewhere/somehow. While I understand the disadvantages of such an approach it would at least allow me to build the project.

This way it is really getting difficult to motivate an extra cost of 200 Euro's for IntelliJ compared to Flex Builder

Thanks,

Peter

0
Comment actions Permalink

Actually Rebuild action restarts flex compiler shell

0
Comment actions Permalink

Ic...I guess that means I am out of luck.

0
Comment actions Permalink

No, you are not, please, create JIRA request

0
Comment actions Permalink

I am tempted to think this would be a duplicate of http://www.jetbrains.net/jira/browse/IDEA-22355

Would you not agree?

Peter

0
Comment actions Permalink

That issue can be fixed by forcing restart of fcsh on OOM . But if one gets OOM on first compile and one module (I think this is your case) then the problem should be handled in a different way (and described by different request).

0
Comment actions Permalink

Peter, does your project consist of many modules and each of module can
potentially be successfully compiled with "fresh" fcsh or you have one
enormous module that causes fcsh OutOfMemory even at first compilation?

0
Comment actions Permalink

First case. Many modules, each of which compile fine one by one, but where a rebuild project results in the heap space error.

0
Comment actions Permalink

Please try the latest EAP, problems with Flex Compiler's OutOfMemory
must be workarounded there.
http://www.jetbrains.net/confluence/display/IDEADEV/Diana+EAP

0
Comment actions Permalink

Patched version solves 'my' problem.

Thanks!

Peter

0

Please sign in to leave a comment.