How to solve the problem of slow compilation and Java heap space exception in Flash build 4

Source: Internet
Author: User

Http://blog.163.com/junxu_wu/blog/static/14170008020111035110819/

 

 

1. Find flexbuilder in the installation path. INI file, edit, add the following parameter-vmargs-Xms128m-Xmx512m-XX: maxpermsize = 256m-xx: permsize = 64 m # Do not set too high, otherwise it will be slower-djava.net. preferipv4stack = true the above several pieces of experience can significantly accelerate the compilation speed several times, 3rd can significantly reduce the probability of FB failure .? 2. Because the flex Builder compiler shell has a memory leak problem, and the default JVM heap size of the SDK is only 384 Mb, it is not easy to use a compile project, therefore, you only need to modify the JVM parameters of the SDK. Edit the {flex SDK} installation path/bin/JVM. config file as follows. Java. ARGs =-xmx512m-dsun. Io. usecanoncaches = false. If there is still an error, it can be increased to 1024 or more. Note: the SDK path in my flex4.5 installation path is F: \ Adobe Flash builder 4.5 \ sdks \ 4.5.1 \ bin \ JVM. config. just adjust it here!

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.