From 99e66229aca82e12292d0e481d8e71158cc52ca4 Mon Sep 17 00:00:00 2001 From: Karl Heinz Marbaise Date: Sun, 4 Feb 2018 11:27:33 +0100 Subject: [PATCH] [MNG-6340] [Performance]To make System.gc() call configurable in target summary code o Just removed the System.gc() call. --- .../org/apache/maven/cli/event/ExecutionEventLogger.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java index 85760e6d05..d4171f7252 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java @@ -233,14 +233,6 @@ public class ExecutionEventLogger logger.info( "Total time: " + formatDuration( time ) + wallClock ); logger.info( "Finished at: " + formatTimestamp( finish ) ); - - System.gc(); - - Runtime r = Runtime.getRuntime(); - - long mb = 1024 * 1024; - - logger.info( "Final Memory: " + ( r.totalMemory() - r.freeMemory() ) / mb + "M/" + r.totalMemory() / mb + "M" ); } @Override