Author: bstansberry(a)jboss.com
Date: 2008-10-25 22:37:37 -0400 (Sat, 25 Oct 2008)
New Revision: 2002
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java
Log:
Run qc before filling memory
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java
===================================================================
---
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java 2008-10-25
04:57:27 UTC (rev 2001)
+++
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java 2008-10-26
02:37:37 UTC (rev 2002)
@@ -44,6 +44,8 @@
{
int duration = Integer.parseInt(this.getParameter(request, DURATION,
DEFAULT_DURATION));
+ System.gc();
+
long free = Runtime.getRuntime().freeMemory() / 2;
@SuppressWarnings("unused")
Show replies by date