Author: solomax
Date: Mon Mar  3 14:47:47 2014
New Revision: 1573573

URL: http://svn.apache.org/r1573573
Log:
[OPENMEETINGS-927] Perm size is increased

Added:
    openmeetings/branches/3.0.x/WebContent/red5/red5.bat
    openmeetings/branches/3.0.x/WebContent/red5/red5.sh   (with props)

Added: openmeetings/branches/3.0.x/WebContent/red5/red5.bat
URL: 
http://svn.apache.org/viewvc/openmeetings/branches/3.0.x/WebContent/red5/red5.bat?rev=1573573&view=auto
==============================================================================
--- openmeetings/branches/3.0.x/WebContent/red5/red5.bat (added)
+++ openmeetings/branches/3.0.x/WebContent/red5/red5.bat Mon Mar  3 14:47:47 
2014
@@ -0,0 +1,54 @@
+REM #############################################
+REM Licensed under the Apache License, Version 2.0 (the "License");
+REM you may not use this file except in compliance with the License.
+REM You may obtain a copy of the License at
+REM
+REM     http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM #############################################
+@echo off
+
+SETLOCAL
+
+if NOT DEFINED RED5_HOME set RED5_HOME=%~dp0
+
+if NOT DEFINED RED5_MAINCLASS set RED5_MAINCLASS=org.red5.server.Bootstrap
+
+if NOT DEFINED JAVA_HOME goto err
+
+REM JAVA options
+REM You can set JAVA_OPTS to add additional options if you want
+REM Set up logging options
+set 
LOGGING_OPTS=-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector 
-Dcatalina.useNaming=true
+REM Set up security options
+REM set SECURITY_OPTS= -Djava.security.debug=failure -Djava.security.manager 
-Djava.security.policy="%RED5_HOME%/conf/red5.policy"
+set SECURITY_OPTS=-Djava.security.debug=failure
+IF [%JAVA_OPTS%] == [] (
+       set JAVA_OPTS=-XX:PermSize=192m -XX:MaxPermSize=512m 
-XX:+CMSClassUnloadingEnabled
+)
+set JAVA_OPTS=%LOGGING_OPTS% %SECURITY_OPTS% %JAVA_OPTS%
+
+set JYTHON_OPTS=-Dpython.home=lib
+
+set RED5_CLASSPATH=%RED5_HOME%\boot.jar;%RED5_HOME%\conf;%CLASSPATH%
+
+if NOT DEFINED RED5_OPTS set RED5_OPTS= 
+
+goto launchRed5
+
+:launchRed5
+echo Starting Red5
+"%JAVA_HOME%\bin\java" %JYTHON_OPTS% %JAVA_OPTS% -cp "%RED5_CLASSPATH%" 
%RED5_MAINCLASS% %RED5_OPTS%
+goto finally
+
+:err
+echo JAVA_HOME environment variable not set! Take a look at the readme.
+pause
+
+:finally
+ENDLOCAL

Added: openmeetings/branches/3.0.x/WebContent/red5/red5.sh
URL: 
http://svn.apache.org/viewvc/openmeetings/branches/3.0.x/WebContent/red5/red5.sh?rev=1573573&view=auto
==============================================================================
--- openmeetings/branches/3.0.x/WebContent/red5/red5.sh (added)
+++ openmeetings/branches/3.0.x/WebContent/red5/red5.sh Mon Mar  3 14:47:47 2014
@@ -0,0 +1,72 @@
+#!/bin/bash
+# #############################################
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# #############################################
+
+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
+  ;;
+  Darwin*)
+
+  ;;
+  *)
+  # Do nothing
+  ;;
+esac
+
+echo "Running on " $OS
+
+# 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.useNaming=true"
+# Set up security options
+SECURITY_OPTS="-Djava.security.debug=failure"
+if [ -z "$JAVA_OPTS" ]; then
+       export JAVA_OPTS="-XX:PermSize=192m -XX:MaxPermSize=512m 
-XX:+CMSClassUnloadingEnabled"
+fi
+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" "${JAVA_HOME}/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_MAINCLASS" $RED5_OPTS

Propchange: openmeetings/branches/3.0.x/WebContent/red5/red5.sh
------------------------------------------------------------------------------
    svn:executable = *


Reply via email to