Flash Builder 4 Memory optimized Java heap space solution
Flash build 4 Compile slow, report Java heap Space heap spatial exception error resolution:
1,
Locate the Flexbuilder.ini file under the installation path, edit it, and add the following parameters
-vmargs
-xms256m
-xmx1024m
-xx:maxpermsize=256m
-xx:permsize=64m #不要设置太高, otherwise it will be slower.
-djava.net.preferipv4stack=true
The above experience can obviously speed up the compilation speed several times, 3rd article can obviously reduce the FB hangs the probability.
2, because the flex Builder compiler Shell has the memory leak problem, and the SDK default JVM heap size is only 312M, when the compile than the larger project easy enough, So just modify the SDK's JVM parameters.
Edit {Flex SDK} installation path/bin/jvm.config files are as follows.
Java.args=-xmx1024m-dsun.io.usecanoncaches=false
If you still have the error, you can increase to 1024 or more.
Note: The SDK location in my flex4 installation path: D:\Adobe\Adobe Flash Builder 4\sdks\4.0.0\bin\jvm.config here to adjust