From 8bf6b36ac123fdd2d5511f16c664b172f6580d72 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 17 May 2020 16:13:01 +0200 Subject: [PATCH] Add Heap dumps for analysis Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/SubserverSystem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/bungeecore/SubserverSystem.java b/src/de/steamwar/bungeecore/SubserverSystem.java index c086600..8bcd406 100644 --- a/src/de/steamwar/bungeecore/SubserverSystem.java +++ b/src/de/steamwar/bungeecore/SubserverSystem.java @@ -100,6 +100,8 @@ public class SubserverSystem { cmd.add("-DcheckSchemID=" + checkSchemID); cmd.add("-Xmx3G"); cmd.addAll(JVM_ARGS); + cmd.add("-XX:+HeapDumpOnOutOfMemoryError"); + cmd.add("-XX:HeapDumpPath=/home/minecraft/heap_dumps"); cmd.add("-jar"); cmd.add(BINARY_PATH + modus.serverJar()); cmd.add("--log-strip-color");