Skip to content

Commit

Permalink
Remove HeapDumpOnOutOfMemoryError java option
Browse files Browse the repository at this point in the history
As there is a memory leak in metafacture-core#666 several instances
dump 32 GB sized heap profiles. Our server have not enough space to
handle these. It's btter to enable this option when needed, not as default.
  • Loading branch information
dr0i committed Feb 20, 2025
1 parent b466ffc commit 7dcaf83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monit_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ case $ACTION in
kill $(cat target/universal/stage/RUNNING_PID)
rm target/universal/stage/RUNNING_PID
fi
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" sbt "start $PORT"
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" sbt "start $PORT"
;;
stop)
kill $(cat target/universal/stage/RUNNING_PID)
Expand Down

0 comments on commit 7dcaf83

Please sign in to comment.