Ensure that Flash Builder or Eclipse is not running on your computer.
Last updated on
Apr 27, 2021 06:57:19 AM GMT
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.
-
-
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.
-
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:
- http://wiki.eclipse.org/Eclipse.ini
- http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse
- http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html