Issue

Flash Builder's performance is sluggish, or an out-of-memory error occurs. 

Solution

Increase the following Java virtual memory (-vmargs) settings:

  • Xms Initial size (bytes) of the memory allocation pool. This value must be a multiple of 1024, greater than 1 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. 
  • Xmx Maximum size (bytes) of the memory allocation pool. This value must a multiple of 1024, greater than 2 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
  • XX:MaxPermSize Maximum size of Permanent Generation
  • XX:PermSize Initial size of Permanent Generation

Follow these steps to increase the Java virtual memory settings.

  1. Ensure that Flash Builder or Eclipse is not running on your computer.
  2. Locate and open the FlashBuilder.ini or eclipse.ini file, as applicable, on your computer. The .ini file is located within your Flash Builder or Eclipse installation directory.
  3. Change or add the following Java -vmargs settings in the Flash Builder.ini file or eclipse.ini file:
  • Xms256m
  • Xmx512m
  • XX:MaxPermSize=256m
  • XX:PermSize=64m
  • Save the file and restart Flash Builder or Eclipse, as applicable.

Additional Information

These errors occur when the default Java virtual memory settings specified in the Flash Builder.ini file are insufficient for Flash Builder to work efficiently. (The Flash Builder.ini file is for the stand-alone configuration) and the eclipse.ini file is for the plug-in configuration.) 

For more information on modifying Java virtual memory settings, see the following:

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy