Specifications
123ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
To set the initial heap size on the Sun HotSpot JVM, change the value of the Xms property. To change the maximum
heap size, change the value of the
Xmx property. The following example sets the initial heap size to 256M and the
maximum heap size to 512M:
java.args=-Xms256m -Xmx512m -Dsun.io.useCanonCaches=false
In addition to increasing your JVM’s heap size, you can tune the JVM in other ways. Some JVMs provide more
granular control over garbage collecting, threading, and logging. For more information, consult your JVM
documentation or view the options on the command line. If you are using the Sun HotSpot JVM, for example, you
can enter
java -X or java -D on the command line to see a list of configuration options.
In many cases, you can also use a different JVM. Benchmark your Flex application and the application server on
several different JVMs. Choose the JVM that provides you with the best performance.
Setting the
useCanonCaches argument to false is required to support Windows file names.
<?xml version="1.0"?>
<!-- config/ContextRootTest.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="l1.text='url='+s1.url">
<mx:HTTPService id="s1" url="@ContextRoot()/service.jsp"/>
<mx:Label id="l1"/>
</mx:Application>
Flash Player configuration
You can use the standard version or the debugger version of Adobe® Flash® Player as clients for your Flex applica-
tions. The debugger version of Flash Player can log output from the
trace() global method as well as data
services messages and custom log events.
You enable and disable logging and configure the location of the output file in the mm.cfg file. For more infor-
mation on locating and editing the mm.cfg file, see “Configuring the debugger version of Flash Player” on
page 229.
You can configure the standard version and the debugger version of Flash Player auto-update and other settings
by using the mms.cfg file. This file is in the same directory as the mm.cfg file. For more information on auto-
update, see the Flash Player documentation.










