Load testing allows you to test how many connections can be streamed on your system.
You can load test Audio or Video broadcasts using the following script on your server. The test will launch multiple ffmpeg processes and run for a total of 6 minutes.
1. Install FFMPEG on the system
2. Download the load testing tool:
wget https://www.mediacp.net/tools/loadtest.sh.txt -O loadtest.sh; chmod +x loadtest.sh
3. Run the load testing utility and specify the path to the stream as in this example as well as how many connections to open, in this case 1000 for audio and 100 for video.
Audio (Shoutcast/Icecast)
./loadtest.sh http://myserver.com:8000/stream 1000
Video Broadcast (HLS output)
(Might only show up as 1 connection from panel, as it is coming from 1 ip)
./loadtest.sh http://myserver.com:19350/stream/stream.hls 100
4. Ensure all ffmpeg processes are stopped after completion:
pkill ffmpeg;