From: Olivier Lamy Date: Mon, 31 Dec 2012 14:16:07 +0000 (+0000) Subject: do not call garbage collector X-Git-Tag: archiva-1.4-M4~333 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62cf8e04a7c6498a314c242b63ed2fd78f5508fc;p=archiva.git do not call garbage collector git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427135 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java index a2cb8e2f5..80bf050d3 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java @@ -78,7 +78,7 @@ public class DefaultSystemStatusService throws ArchivaRestServiceException { Runtime runtime = Runtime.getRuntime(); - runtime.gc(); + long total = runtime.totalMemory(); long used = total - runtime.freeMemory(); long max = runtime.maxMemory();