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 10db55c commit 3733b91
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 @@ -31,7 +31,7 @@ cd $HOME/git/$REPO
case $ACTION in
start)
kill $(cat target/universal/stage/RUNNING_PID)
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" $HOME/activator-dist-1.3.5/activator "start $PORT"
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" $HOME/activator-dist-1.3.5/activator "start $PORT"
;;
stop)
kill $(cat target/universal/stage/RUNNING_PID)
Expand Down

0 comments on commit 3733b91

Please sign in to comment.