
26
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Configuring the server
Last updated 11/28/2012
After you confirm that aggregate messaging is enabled, you can use the settings in the Server.xml file to configure the
size of the messages. You can also enable or disable the messages based on the type of stream. For more information,
see “
Streams
” on page 229.
You can also configure message queuing in the Application.xml file. For more information, see “
Queue
” on page 172.
Combine audio samples
Important:
Do not send aggregate messages and combine audio samples in the same application.
To handle more connections while broadcasting a live stream, combine audio samples.
1
Open the
rootinstall
/conf/_defaultRoot_/_defaultVHost_/Application.xml file.
Note:
You can set these values in an Application.xml file at the VHost level or at the application level. To set the value
at the application level, copy an Application.xml file to the application’s folder.
2
Locate the
StreamManager/Audio/CombineSamples
section of the file and set values the following elements:
3
Restart the server.
Limit connection requests
A high connection rate to the server can negatively impact the experience of users already connected to the server.
1
Locate the following code in the Server.xml configuration file:
<Root>
<Server>
...
<Protocol>
<RTMP>
<Edge>
<MaxConnectionRate>100</MaxConnectionRate>
Element
Description
Subscribers
If there are more than this number of subscribers to a stream, audio samples are combined.
The default value is 8. To increase live streaming capacity, set this value to 1.
LoCPU
If the CPU is lower than this value, audio samples are not combined. The default value is 60. To
increase live streaming capacity, set this value to 1.
HiCPU
If the CPU is higher than this value, audio samples are not combined. The default value is 80.
To increase live streaming capacity, set this value to 1.
MaxSamples
Combine this many samples into one message. The default value is 4. To increase live
streaming capacity, set this value to 8.