From 9af9e847239d8cf5562de043e1eef8e01eecd1f4 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 15 Jan 2023 21:19:19 +0100 Subject: [PATCH] Set more sensible initial heap size for faster server startup time Signed-off-by: Lixfel --- CommonCore | 2 +- src/de/steamwar/bungeecore/Node.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonCore b/CommonCore index c6da22f..d56150a 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit c6da22f0bee3865b7b3283bc17275e12c5de14af +Subproject commit d56150a8b105f5ad63a8c3a21b6833f388a83225 diff --git a/src/de/steamwar/bungeecore/Node.java b/src/de/steamwar/bungeecore/Node.java index 1821d27..387a1f0 100644 --- a/src/de/steamwar/bungeecore/Node.java +++ b/src/de/steamwar/bungeecore/Node.java @@ -30,7 +30,7 @@ import java.util.logging.Level; public abstract class Node { - private static final List OPENJ9_ARGS = Arrays.asList("-Xgc:excessiveGCratio=80", "-Xsyslog:none", "-Xtrace:none", "-Xdisableexplicitgc", "-XX:+AlwaysPreTouch", "-XX:+CompactStrings", "-XX:-HeapDumpOnOutOfMemory", "-XX:+ExitOnOutOfMemoryError", "-Dlog4j.configurationFile=log4j2.xml"); + private static final List OPENJ9_ARGS = Arrays.asList("-Xgc:excessiveGCratio=80", "-Xsyslog:none", "-Xtrace:none", "-Xdisableexplicitgc", "-XX:+AlwaysPreTouch", "-XX:+CompactStrings", "-XX:-HeapDumpOnOutOfMemory", "-XX:+ExitOnOutOfMemoryError", "-Dlog4j.configurationFile=log4j2.xml", "-Dio.netty.allocator.numHeapArenas=1", "-Xmos128M", "-Xmns48M"); // initial heap half values of memory observed by 1.19 spectate server private static final Set JAVA_8 = new HashSet<>(); static { JAVA_8.add("paper-1.8.8.jar");