Problem Summary: 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:
- java.lang.OutOfMemoryError: Java heap space
- at java.util.HashMap.resize(Unknown Source)
- 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.
Solution Summary: There are two useful arguments of JRE to control the memory usage:
- -Xms define the minimum usage of memory by JRE
- -Xmx define the maximum usage of memory by JRE
I just set –Xmx to 1024m to satisfy the usage of compiling such huge Flex project.

August 6th, 2008
Ntt.cc
Posted in
Tags:
One day, i want to compile my business app with TestSuiteRunner (from FlexUnit) app at one time using Flex Builder, but i never do this before. Flex Builder can not set two application once. But, it can set modules to be compiled.
I am working on an application which contains many components. I have been puzzled by a problem for a long time: Is the memory usage of components built with mxml tag bigger than that of components built in actionScript? I did a simple experiment below to find the truth.
Preparation: use the codes below to add new mxml component:
Outside of the Flash interface, what do you guys use to edit and debug your AS3 classes in? I use Flex Builder for the brunt,but when I have no need to debug or just want in and out fast,I use notepad to view or edit.The following are some other MXML/AS3 editor or development environment. 