Log max memory on startup too, in case Xmx and Xms are different. (#4283)

This commit is contained in:
Gian Merlino 2017-05-17 10:06:34 +09:00 committed by Roman Leventov
parent d400f23791
commit 51872fd310
1 changed files with 3 additions and 2 deletions

View File

@ -77,9 +77,10 @@ public abstract class GuiceRunnable implements Runnable
final StartupLoggingConfig startupLoggingConfig = injector.getInstance(StartupLoggingConfig.class); final StartupLoggingConfig startupLoggingConfig = injector.getInstance(StartupLoggingConfig.class);
log.info( log.info(
"Starting up with processors[%,d], memory[%,d].", "Starting up with processors[%,d], memory[%,d], maxMemory[%,d].",
Runtime.getRuntime().availableProcessors(), Runtime.getRuntime().availableProcessors(),
Runtime.getRuntime().totalMemory() Runtime.getRuntime().totalMemory(),
Runtime.getRuntime().maxMemory()
); );
if (startupLoggingConfig.isLogProperties()) { if (startupLoggingConfig.isLogProperties()) {