[Minor] Garbage collect after startup
This allows us to see the memory usage after startup
This commit is contained in:
parent
da7f55df5d
commit
267149284c
|
@ -273,6 +273,8 @@ public class ComponentContainerImpl implements ComponentContainer {
|
||||||
|
|
||||||
this.state = ComponentState.STARTED;
|
this.state = ComponentState.STARTED;
|
||||||
|
|
||||||
|
logger.info("Garbage collecting after startup...");
|
||||||
|
System.gc();
|
||||||
logger.info(MessageFormat.format("System: {0}", SystemHelper.asString()));
|
logger.info(MessageFormat.format("System: {0}", SystemHelper.asString()));
|
||||||
logger.info(MessageFormat.format("Memory: {0}", SystemHelper.getMemorySummary()));
|
logger.info(MessageFormat.format("Memory: {0}", SystemHelper.getMemorySummary()));
|
||||||
logger.info(MessageFormat.format("Using locale {0} with timezone {1}",
|
logger.info(MessageFormat.format("Using locale {0} with timezone {1}",
|
||||||
|
|
Loading…
Reference in New Issue