If "java.lang.OutOfMemoryError: Java heap space" error is displayed while generating Flex script.
Once the recording was complete when the script was generated , an pop-up appears which indicates there was a java heap space issue for certain amfsecure calls.
This is because the AMF calls are too large and default body size does not work.
To resolve this issue
1. Apply patch KM1363363 fixes.
2. Make sure to use JRE version 1.6.0_16 or up to 1.6.0_22.
Original JRE with LR 11.04 is 1.5
Rename original <LR-install-folder>/JRE and copy the 1.6 JRE folder as LR/JRE.
Verify java -version indicates 1.6 version.
3. Search for vugen.ini file and backup original file. Now edit the file and update as follows
If the section "[WebRecorder]" is already present in the file then just add the next line
or update the number accordingly.
Save the file and restart the Vugen
4. In VuGen the recording options -> Flex -> Externalizable objects.
Only add flex-messaging-common.jar and flex-messaging-core.jar provided as part of the all-solution patch.
5. Regenerate the script.
Script should be regenerated without OOM errors.