
Configuring Flash Communication Server 47
The Application.xml file contains the following tag structure, with brief comments for each tag:
<Application>
<LoadOnStartup>false</LoadOnStartup>
<MaxAppIdleTime>1200</MaxAppIdleTime>
<RecordAppLog>false</RecordAppLog>
<JSEngine>
<RuntimeSize>1024</RuntimeSize>
<MaxTimeOut>0</MaxTimeOut>
<ScriptLibPath></ScriptLibPath>
</JSEngine>
<StreamManager>
<StorageDir></StorageDir>
<EnhancedSeek>false</EnhancedSeek>
<KeyFrameInterval>1000</KeyFrameInterval>
</StreamManager>
<SharedObjManager>
<StorageDir></StorageDir>
</SharedObjManager>
<Client>
<Bandwidth override="yes">
<ServerToClient>250000</ServerToClient>
<ClientToServer>250000</ClientToServer>
</Bandwidth>
<BandwidthCap override="no">
<ServerToClient>10000000</ServerToClient>
<ClientToServer>10000000</ClientToServer>
</BandwidthCap>
<HTTPTunnel>
<IdlePostInterval>512</IdlePostInterval>
<IdleAckInterval>512</IdleAckInterval>
</HTTPTunnel>
</Client>
</Application>
The tags in the Application.xml file perform the following functions:
• <Application> is the root tag for the XML document. It is a container for all the other tags.
• <LoadOnStartup> indicates whether an application instance is loaded by default when the
server starts up. Having an application instance loaded at server startup saves time when the
first client connects to that application. The default value is
false. If you set this tag to true
in the virtual host’s Application.xml file, an instance of each application on the server will be
loaded at startup. If you set this tag to
true in an application’s optional Application.xml file,
only that application will have an instance loaded at startup.
• <MaxAppIdleTime> indicates the number of seconds between the last client disconnection and
the unloading of the application instance from the server’s memory. The default is 1200
seconds (20 minutes). If this value is set to 0 or less, the default is used.
• <RecordAppLog> indicates whether to write the application log to a file. The default value is
false. If you set this tag to true, a log stream file named applicationName.flv is created for
each application in the virtual host’s /admin/Streams/Logs directory. Each log file records
connections to the application and any error messages that are generated by the server for the
application.
To view the contents of the log stream, you must build a communication application that
retrieves the stream file from the server. Because the log files contain no audio or video, they
are sent all at once by the server. For more information about creating communication
applications, see Developing Communication Applications.
Commentaires sur ces manuels