Connection Disconnects When Transmitting Video to Server
My clients keep getting disconnected when trying to broadcast live video. Downstream to the client doesn't seem to have any problem. I can transmit 10 KB/s but anything beyond 50 KB/s will cause the disconnect problem.
The Wowza access log indicates a ping timeout:
INFO session comment 762278498 client connectionClosed  pingtimeout
I've also seen this in the log:
INFO session connect-pending 18.104.22.168 -
I'm running Wowza 3 on a virtual CentOS 64bit system with 1.75 GB of memory. The Java heap size is set at 500 MB. The application is configured as live low latency with send and receive buffers of 12000. Latency seems ok. Client is flash player 11.
Now I know the above are below the recommended specs for Wowza, but I'd still like to rule out a network problem before upgrading the server, especially since if I have a problem so will my network users. My internet connection is greater than 3 Mb/s down to the client and 4 Mb/s up to the server.
Wowza as configured above + Apache + MySQL + 1 or 2 connected clients + JConsole + ssh will take up between 80-88% of the available memory. CPU usage by the Java process is below 4%. When broadcasting video to the server, other processes (like http to apache) seem sluggish and other connected clients on my network besides the video clients will disconnect (JConsole, even ssh occasionally). Again, streaming down to clients doesn't seem to be a problem though I haven't fully tested this yet. Still at peaks up to 300 KB/s down, no problems, but 50 KB/s up will cause the disconnect problem in less than 1 minute of continuous operation.
Any solutions or suggestions for further troubleshooting would be greatly appreciated.
I have run Wowza on EC2 micro instance and old machines with 256k ram. It's not recommended, but it will do a minimal amount of streaming.
Many hosting services are designed for web hosting. I'm not sure, what the problem is with rtmp on that network, and we might not, probably won't, be able to solve that problem, especially if it is by design, e.g., blocked rtmp.
If you are just testing, try an EC2 m1-small. Don't use the micro, it can work but it's not adequate