Lifeform
09-11-2009, 04:53 PM
Hi,
Here´s the message I get when trying to start our Red5-server today:
someuser@somesite.com [/opt/red58/dist]# ./red5.sh &
[1] 23882
someuser@somesite.com [/opt/red58/dist]# Starting Red5
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Any experts that can help me out what this mean - and what we should do?
UNIXy
09-11-2009, 05:35 PM
Can you post the content of red5.sh?
Regards
Lifeform
09-11-2009, 05:39 PM
"#!/bin/bash
if [ -z "$RED5_HOME" ]; then
export RED5_HOME=`pwd`;
fi
P=":" # The default classpath separator
OS=`uname`
case "$OS" in
CYGWIN*|MINGW*) # Windows Cygwin or Windows MinGW
P=";" # Since these are actually Windows, let Java know
;;
*)
# Do nothing
;;
esac
# JAVA options
# You can set JAVA_OPTS to add additional options if you want
# Set up logging options
LOGGING_OPTS="-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.$
# Set up security options
SECURITY_OPTS="-Djava.security.debug=failure"
export JAVA_OPTS="$LOGGING_OPTS $SECURITY_OPTS $JAVA_OPTS"
if [ -z "$RED5_MAINCLASS" ]; then
export RED5_MAINCLASS=org.red5.server.Bootstrap
fi
# Jython options
JYTHON="-Dpython.home=lib"
for JAVA in "${JAVA_HOME}/bin/java" "/usr/bin/java" "/usr/local/bin/java"
do
if [ -x "$JAVA" ]
then
break
fi
done
if [ ! -x "$JAVA" ]
then
echo "Unable to locate Java. Please set JAVA_HOME environment variable."
exit
fi
export RED5_CLASSPATH="${RED5_HOME}/boot.jar${P}${RED5_HOME}/conf${P}${CLASSPATH}"
# start Red5
echo "Starting Red5"
exec "$JAVA" "$JYTHON" -Dred5.root="${RED5_HOME}" $JAVA_OPTS -cp "${RED5_CLASSPATH}" "$RED5$"
Getting fed up with this Red5-server. Thinking about switching to either Wowza or Adobe FMS...
UNIXy
09-11-2009, 05:42 PM
Replace this line:
export JAVA_OPTS="$LOGGING_OPTS $SECURITY_OPTS $JAVA_OPTS"
with
export JAVA_OPTS="-Xms512m -Xmx1024m $LOGGING_OPTS $SECURITY_OPTS $JAVA_OPTS"
And restart red5.sh
UNIXy
09-11-2009, 06:28 PM
Is it still crashing on startup?
Cheers