From 62cf8e04a7c6498a314c242b63ed2fd78f5508fc Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 31 Dec 2012 14:16:07 +0000 Subject: [PATCH] do not call garbage collector git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427135 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/rest/services/DefaultSystemStatusService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5