comparison je @ 1:89f63d298b43 draft

use _JAVA_OPTIONS to set default memory limit
author gbcs-embl-heidelberg
date Thu, 26 Nov 2015 09:00:03 -0500
parents 424f44e2124e
children 8930b411a9d7
comparison
equal deleted inserted replaced
0:424f44e2124e 1:89f63d298b43
5 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 5 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6 # echo $DIR 6 # echo $DIR
7 # path to jar file to execute, this jar is supposed to be in the same dir as this script 7 # path to jar file to execute, this jar is supposed to be in the same dir as this script
8 JAR_FILE=$DIR"/je_1.0_bundle.jar" 8 JAR_FILE=$DIR"/je_1.0_bundle.jar"
9 9
10 OPTS="-Xmx2g" 10 # set default _JAVA_OPTIONS
11 # uncomment to change logging level using your own log4j.xml found in $DIR file 11 _JAVA_OPTIONS=${_JAVA_OPTIONS:-'-Xmx4G -Xms256m'}
12 # OPTS=$OPTS" -Dlog4j.configuration=file:$DIR/log4j.xml" 12 export _JAVA_OPTIONS
13
14 # uncomment to change logging level using your own log4j.xml found in $DIR file
15 # OPTS="-Dlog4j.configuration=file:$DIR/log4j.xml"
13 16
14 java $OPTS -jar $JAR_FILE "$@" 17 java $OPTS -jar $JAR_FILE "$@"
15 exit $? 18 exit $?