From 158cf798341f99e76e6e81b16c10e2f4a4c55c94 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 20 Jun 2012 16:13:38 +0800 Subject: [PATCH] minor - Call GC and finalization when we open the about window so that we can better observe the changes in heap space. --- .../WEB-INF/src/org/adempiere/webui/window/AboutWindow.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java index 2ac14c0971..d4029cee15 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java @@ -93,6 +93,9 @@ public class AboutWindow extends Window implements EventListener { private void init() { + System.runFinalization(); + System.gc(); + this.setPosition("center"); this.setTitle(ThemeManager.getBrowserTitle()); this.setClosable(true);