By default, Wowza Streaming Engine has send and receive buffers of streams set to 65000 bytes. By having the operating system scale the network buffers, this can help reduce memory threads from ballooning in size where there's network issues.
To set the operating system to scale the send and receive buffers, follow the below steps:
1. Navigate to: [Wowza-install-dir]/conf/VHost.xml
2. Open VHost.xml in a text editor.
3. First HostPort to change is 1935 for default streaming.
4. Change this:
<ReceiveBufferSize>65000</ReceiveBufferSize>
<ReadBufferSize>65000</ReadBufferSize>
<SendBufferSize>65000</SendBufferSize>
5. To this:
<ReceiveBufferSize>0</ReceiveBufferSize>
<ReadBufferSize>65000</ReadBufferSize>
<SendBufferSize>0</SendBufferSize>
"0" means to have the operating system scale the buffers. Please do not change the ReadBufferSize from "65000" bytes as that would create a server crash by not having a buffer for reading data.
7. Continue to make this change as well to:
- SSL HostPort (for SSL streaming)
- MediaCaster (for camera streams that you're pulling into Wowza)
- NetConnection (for network connections)
8. Save, restart Wowza Streaming Engine services for changes to take effect.
Test before implementing to a production environment.