To use the optimum of performance from your server there is a start-script for red5 available that does some basic settings in the JVM. It is called It is recommended to use that script for production and high-load scenarios.


if [ -z "$RED5_HOME" ]; then export RED5_HOME=.; fi

# Previous option set
export JAVA_OPTS="-Xrs -Xms512M -Xmx1024M -Xss128K -XX:NewSize=256m \
	-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+ExplicitGCInvokesConcurrent \ -Xverify:none"

# start Red5
echo "Setting Hi Performance Options"
exec $RED5_HOME/ >> $RED5_HOME/log/jvm.stdout 2>&1 &


You have to exclude the "-XX:+UseConcMarkSweepGC" param from the default to make it functional! However if you are a performance expert you might also play with the values to find perfect matches for your use-case.

For a complete overview about possible arguments and their meaning see:

Back to top