[kune-commits] r1695 - trunk/script
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Wed Feb 22 16:27:06 CET 2012
Author: vjrj_
Date: 2012-02-22 16:27:06 +0100 (Wed, 22 Feb 2012)
New Revision: 1695
Modified:
trunk/script/server.sh
Log:
server memory params
Modified: trunk/script/server.sh
===================================================================
--- trunk/script/server.sh 2012-02-22 14:33:28 UTC (rev 1694)
+++ trunk/script/server.sh 2012-02-22 15:27:06 UTC (rev 1695)
@@ -11,6 +11,8 @@
or adding -Dgwt.compiler.skip=true to skip compilation
-a: run as a daemon (only root user)
-l LOGLEVEL : IGNORE|DEBUG|INFO|WARN
+-x: -Xmx memory value
+-m: -Xms memory value
Debug Options:
-d: debug
@@ -40,8 +42,10 @@
LOG_LEVEL="INFO"
LOGFILE=/var/log/kune.log
PIDFILE=/var/run/kune.pid
+MX=""
+MS=""
-while getopts “hj:k:w:s:up:l:da” OPTION
+while getopts “hm:x:j:k:w:s:up:l:da” OPTION
do
case $OPTION in
h)
@@ -60,6 +64,12 @@
s)
JAAS_CONFIG=$OPTARG
;;
+ x)
+ MX="-Xmx"$OPTARG
+ ;;
+ m)
+ MS="-Xms"$OPTARG
+ ;;
p)
# Debug port
PORT=$OPTARG
@@ -124,6 +134,8 @@
-Djava.security.auth.login.config=$JAAS_CONFIG \
-Dkune.server.config=$KUNE_CONFIG \
-Dwave.server.config=$WAVE_CONFIG \
+ $MS \
+ $MX \
-jar $JAR </dev/null > $LOGFILE 2>&1 &
echo $! > $PIDFILE
else
@@ -132,6 +144,8 @@
-Djava.security.auth.login.config=$JAAS_CONFIG \
-Dkune.server.config=$KUNE_CONFIG \
-Dwave.server.config=$WAVE_CONFIG \
+ $MS \
+ $MX \
-jar $JAR
fi
fi
More information about the kune-commits
mailing list