From 51872fd310853665ef4816179471ec86f106504f Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Wed, 17 May 2017 10:06:34 +0900 Subject: [PATCH] Log max memory on startup too, in case Xmx and Xms are different. (#4283) --- services/src/main/java/io/druid/cli/GuiceRunnable.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/src/main/java/io/druid/cli/GuiceRunnable.java b/services/src/main/java/io/druid/cli/GuiceRunnable.java index f07edaeb8f6..82d8155611c 100644 --- a/services/src/main/java/io/druid/cli/GuiceRunnable.java +++ b/services/src/main/java/io/druid/cli/GuiceRunnable.java @@ -77,9 +77,10 @@ public abstract class GuiceRunnable implements Runnable final StartupLoggingConfig startupLoggingConfig = injector.getInstance(StartupLoggingConfig.class); log.info( - "Starting up with processors[%,d], memory[%,d].", + "Starting up with processors[%,d], memory[%,d], maxMemory[%,d].", Runtime.getRuntime().availableProcessors(), - Runtime.getRuntime().totalMemory() + Runtime.getRuntime().totalMemory(), + Runtime.getRuntime().maxMemory() ); if (startupLoggingConfig.isLogProperties()) {