Skip to content

Commit 2107a5a

Browse files
committed
Remove HeapDumpOnOutOfMemoryError java option
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.
1 parent de4a122 commit 2107a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monit_restart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ case $ACTION in
3333
if [ -f target/universal/stage/RUNNING_PID ]; then
3434
kill $(cat target/universal/stage/RUNNING_PID)
3535
fi
36-
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" $HOME/activator-dist-1.3.5/activator "start $PORT"
36+
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" $HOME/activator-dist-1.3.5/activator "start $PORT"
3737
;;
3838
stop)
3939
if [ -f target/universal/stage/RUNNING_PID ]; then

0 commit comments

Comments
 (0)