Setting the Maximum Java Heap Size When Using an Alternate Adobe Flex Compiler

How to:

If you are using the SET FLEXSDK command, as described in Using an Alternate Adobe Flex Compiler With the WebFOCUS Reporting Server, you can also use the SET FLEXMEM command to specify the maximum Java heap size allocated to the Flex compiler to compile Flash or Flex files. If there is not enough available memory allocated to the Flex compiler at compilation time, errors may occur.

By default, the maximum Java heap size is typically set to 384m (megabytes) in a script file named mxmlc, in a variable named $VMARGS. The mxmlc file resides in the Flex SDK \bin directory installed on your system.


Top of page

x
Syntax: How to Set the Maximum Java Heap Size When Using an Alternate Adobe Flex Compiler

In the WebFOCUS procedure that contains the SET FLEXSDK command, add the following

SET FLEXMEM = maximum_java_heap_size

where:

maximum_java_heap_size

Is the maximum Java heap size allocated to the Flex compiler to compile Flash or Flex files. For example, the command

SET FLEXMEM = 640m

increases the maximum Java heap size from the default value (384 megabytes) to 640 megabytes.


WebFOCUS