[Minor] Garbage collect after startup

This allows us to see the memory usage after startup
This commit is contained in:
Robert von Burg 2022-09-06 13:10:04 +02:00
parent da7f55df5d
commit 267149284c
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 0 deletions

View File

@ -273,6 +273,8 @@ public class ComponentContainerImpl implements ComponentContainer {
this.state = ComponentState.STARTED;
logger.info("Garbage collecting after startup...");
System.gc();
logger.info(MessageFormat.format("System: {0}", SystemHelper.asString()));
logger.info(MessageFormat.format("Memory: {0}", SystemHelper.getMemorySummary()));
logger.info(MessageFormat.format("Using locale {0} with timezone {1}",