
32
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Configuring the server
Last updated 11/28/2012
Check for process failures
1
Enter a value in the
MaxFailures
tag to specify the maximum number of process failures allowed before a core
process is disabled. The default value is 2.
2
Once disabled, a master process will not launch a core process until a minimum recovery time elapses. Enter a value
in the
RecoveryTime
tag to specify the minimum recovery time for contained elements; set the tag to 0 to disable
checking for process failures.
Use this feature to guard against a behavior in which a faulty core process can use the entire CPU by being repeatedly
launched very quickly.
Note:
Applications that are loaded using the Administration API (including applications loaded using the
Administration Console) are not checked for process failures.
Configure the RAW adaptor
Flash Media Server 3.5.3
The RAW (Record and Watch) file format records live media into configurable chunks that stream to any version of
Flash Player. Use the RAW file format to serve long-length, multi-bitrate DVR streams without running into
performance issues. The RAW file format records and plays back all streams that Flash Media Server supports,
including H.264 video, data-only, audio-only, and so on.
1
Open the
rootinstall
/conf/Server.xml file in a text editor.
2
To configure how the server uses the RAW adaptor, edit the following XML parameters:
<Server>
<Streams>
<StreamLogLevel>warning</StreamLogLevel>
<Raw>
<EnableAggMsgs>true</EnableAggMsgs>
<MaxAggMsgSize>65536</MaxAggMsgSize>
</Raw>
...
3
Save and validate the XML file.
4
Restart the server.
Disable RTMPE
Important:
By default, RTMPE is enabled in the server’s Adaptor.xml file. For maximum security, it’s best to leave
RTMPE enabled. For more information, see the
Flash Media Server Hardening Guide
.
Element
Default value
Description
StreamLogLevel
warning
Controls log levels for all stream adaptors (FLV, MP4, and RAW). The
default value is
warning
. Possible values are
verbose
,
warning
, and
error
.
Raw
Container element.
Contains elements that control the RAW adaptor.
EnableAggMsgs
true
Specifies whether the RAW adaptor generates aggregate messages
(
true
) or not (
false
). The default value is
true
. Aggregating messages
improves server performance.
MaxAggMsgSize
65536
The maximum size of an aggregate message, in bytes. The default value
is
65536
. You can use any positive integer.