From b86e452b80d4f1488f0693bdf96afc2486f5f443 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 13 Oct 2020 15:14:55 +0200 Subject: [PATCH] Add jvm flags to debugpaste --- .../src/main/java/com/boydti/fawe/util/IncendoPaster.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java b/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java index fdb0a06f9..f1b1a739f 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java @@ -232,6 +232,7 @@ public final class IncendoPaster implements Paster { RuntimeMXBean rb = ManagementFactory.getRuntimeMXBean(); b.append("Uptime: ").append(TimeUnit.MINUTES.convert(rb.getUptime(), TimeUnit.MILLISECONDS)) .append(" minutes").append('\n'); + b.append("JVM Flags: ").append(rb.getInputArguments()).append('\n'); b.append("Free Memory: ").append(runtime.freeMemory() / 1024 / 1024).append(" MB").append('\n'); b.append("Max Memory: ").append(runtime.maxMemory() / 1024 / 1024).append(" MB").append('\n'); b.append("Total Memory: ").append(runtime.totalMemory() / 1024 / 1024).append(" MB").append('\n');