Flash Builder 4 Memory optimized Java heap space solution

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.