Flex/Flash Builder – Update JRE, .ini, Increase Memory

Working with Flex Builder 3 project, and getting the odd ‘out of memory error’ on Windows 7 64bit. Can also be done for Flash Builder 4.6

The following steps helped to speed things up and alleviate the problem (so far!)

1. Check what version of the JRE FB is using Help>Product Details>Configuration (even if you have the latest, FB will probably have defaulted to JRE 1.5 which comes with the install)

Configuration Details

2. Download the latest Jre (use the 32bit version – as FB3 is 32 bit Eclipse)

JRE 6 can be downloaded here

Install, and copy the Jre Files from: C:\Program Files (x86)\Java\jre6 to C:\Program Files (x86)\Adobe\Flex Builder 3\jre (and keep backup of original of course just in case)

3. Increase the memory for FB3 – C:\Program Files (x86)\Adobe\Flex Builder 3\FlexBuilder.ini

-vmargs
-Xms768m
-Xmx768m
-XX:MaxPermSize=768m
-XX:PermSize=768m
-Djava.net.preferIPv4Stack=true

You can only increase the memory so far, otherwise FB will fail to load (let me know what values you got away with!!)

Note:

Adding -showlocation before vmargs will display the current workspace in the title bar of FB

Adding -refresh, -clean clears the FB4 cache. Faster Garbage Collection: -XX:+UseParallelGC

Disable FB4 Validation: Window>Preferences>Validation (disable all but Class Path Dependencies)

Tags: , , , ,

2 Responses to “Flex/Flash Builder – Update JRE, .ini, Increase Memory”

  1. Thank you for another great post. The place else could anyone get that kind of info in such an ideal method of writing? I’ve a presentation subsequent week, and I am on the search for such info.

  2. admin says:

    Not sure what you are asking??

Leave a Reply

You must be logged in to post a comment.