re-implemented gc-button (has been lost somewhere)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3639 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent dd44a1394f
commit 9c41132569

@ -81,6 +81,10 @@ public class PerformanceMemory_p {
env.setConfig("javastart_Xms", "Xms" + xmx + "m");
prop.put("setStartupCommit", 1);
}
if (post.containsKey("gc")) {
System.gc();
prop.put("gc", 1);
}
}
long memoryFreeNow = Runtime.getRuntime().freeMemory();

Loading…
Cancel
Save