When I compile a project including thousands MXML and AS files with Flex Ant, I got an error message as below displayed in the Console panel of Flex Builder:
1. java.lang.OutOfMemoryError: Java heap space
2. at java.util.HashMap.resize(Unknown Source)
3. at java.util.HashMap.addEntry(Unknown Source)
It seems that the memory usage of my JRE reaches its limitation — as we know, Flex Builder is running in JRE. Here is a simple way to solve this problem. It‘s just changing the preferences settings of Flex Builder(@see ww.ntt.cc ).
Tweet
SaveShareSend
Tags: flash-flex



Comments
mezmo replied ago:
A coworker created a Maven plugin wrapping the flex ant task, and we had to set not only that, but the PermSizeMax to something like 512m as well. Well see how it goes as we progress with this project.
Voters For This Link (5)
Voters Against This Link (1)