
Chapter 348
• <JSEngine> is a container for the next three tags, which control the resource usage of the
Server-Side Communication ActionScript engine.
• <RunTimeSize> indicates the maximum number of bytes that a particular application instance
can use to run server-side ActionScript on the server before garbage collection is performed—
that is, before any unreferenced or unused ActionScript objects are purged from memory. The
default is 1024K or 1 MB. If you create a client application that requires more than 1 MB of
ActionScript memory, this value must be increased. If a new script object is created after
garbage collection that will cause the runtime size of the application instance to exceed the
value of the
<RunTimeSize> tag, an out-of-memory error occurs and the application instance
is shut down.
• <MaxTimeOut> indicates the maximum time in seconds that a server-side script function may
take to execute. If a script function takes longer than the specified amount of time, it will be
stopped by the server. Using this feature increases the processor workload. Setting this tag to a
value greater than 0 is useful for debugging scripts during development of your applications.
During deployment, it is recommended that you set this tag to the default value of 0, which
imposes no limit on the time scripts take to execute.
• <ScriptLibPath> specifies a location for additional server-side scripts, such as
components.asc or NetServices.asc. The server first looks for additional server-side scripts in
the directory where your main.asc or application_name.asc file is located, which should be in
/applications/application_name or /applications/application_name/scripts. Then, the server
looks for additional scripts in the path specified in this tag. You can specify multiple directories
by delimiting them with semicolons. Do not use quotation marks when specifying the path.
• <StreamManager> is a container for the next three tags, which control media streams.
• <StorageDir> indicates the directory where streams should be recorded for each application.
The default is a directory named Streams in your application directory. The default is used if
no directory is specified. When specifying a directory, use an absolute path.
• <EnhancedSeek> enables or disables finer seeking performance within streams. When this tag
is set to
true, the server inserts keyframes at the point in the stream where the seek begins if
there is no preexisting keyframe there. This results in better visual display while seeking. When
this tag is set to
false (the default), no keyframes are inserted by the server and seeks begin at
the nearest existing keyframe.
• <KeyFrameInterval> specifies, in milliseconds, how often to generate and save keyframes in
an FLV file. These server-generated keyframes allow clients to perform seek and playback of
the video stream. The default value is 1000.
Setting this tag to a higher value than the default reduces the number of keyframes added to
the FLV file and thus reduces the file size (but also reduces the seeking accuracy). For example,
a 15-second video with a file size of 76 KB is increased only to 89 KB with
<KeyFrameInterval> set to 5000, which is an increase of 13 KB, or 17%. The same video has
a size of 109 KB with
<KeyFrameInterval> set to 1000, which is an increase of 33 KB, or
43%. You should be aware of the correlation between file size and accuracy of seeking when
you set this value.
• <SharedObjManager> is a container tag for the <StorageDir> tag.
Kommentare zu diesen Handbüchern