Skip to content

Commit

Permalink
Add JAVA_OPTS env var export to start.sh (linkedin#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbramsen authored and akshayrai committed Jan 5, 2017
1 parent 416cf90 commit 9a13165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ OPTS+=" $jvm_args -Djava.library.path=$JAVA_LIB_PATH"
OPTS+=" -Dhttp.port=$port"
OPTS+=" -Ddb.default.url=$db_loc -Ddb.default.user=$db_user -Ddb.default.password=$db_password"

# set Java related options (e.g. -Xms1024m -Xmx1024m)
export JAVA_OPTS="-XX:+HeapDumpOnOutOfMemoryError"

# Start Dr. Elaphant
echo "Starting Dr. Elephant ...."
nohup ./bin/dr-elephant ${OPTS} > $project_root/dr.log 2>&1 &
Expand Down

0 comments on commit 9a13165

Please sign in to comment.