# HG changeset patch # User gbcs-embl-heidelberg # Date 1448546367 18000 # Node ID ff5fddc4739b4a75e490bbd87855990cac4dabab # Parent 111ba118031801bef246dc51e1fa644b71488837 use _JAVA_OPTIONS to set default memory limit diff -r 111ba1180318 -r ff5fddc4739b je --- a/je Wed Nov 25 12:36:37 2015 -0500 +++ b/je Thu Nov 26 08:59:27 2015 -0500 @@ -7,9 +7,12 @@ # path to jar file to execute, this jar is supposed to be in the same dir as this script JAR_FILE=$DIR"/je_1.0_bundle.jar" -OPTS="-Xmx2g" -# uncomment to change logging level using your own log4j.xml found in $DIR file -# OPTS=$OPTS" -Dlog4j.configuration=file:$DIR/log4j.xml" +# set default _JAVA_OPTIONS +_JAVA_OPTIONS=${_JAVA_OPTIONS:-'-Xmx4G -Xms256m'} +export _JAVA_OPTIONS + +# uncomment to change logging level using your own log4j.xml found in $DIR file +# OPTS="-Dlog4j.configuration=file:$DIR/log4j.xml" java $OPTS -jar $JAR_FILE "$@" exit $?