Commit 8a5a7a5e authored by Jelle Scholtalbers's avatar Jelle Scholtalbers

use _JAVA_OPTIONS to set default memory limit

parent 726a49b2
......@@ -7,9 +7,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# 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 $?
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment