Author: pferraro
Date: 2008-10-01 08:39:27 -0400 (Wed, 01 Oct 2008)
New Revision: 1922
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java
Log:
Use half the free memory - instead of all of it.
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-09-30
15:45:58 UTC (rev 1921)
+++
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java 2008-10-01
12:39:27 UTC (rev 1922)
@@ -42,7 +42,7 @@
{
int duration = Integer.parseInt(this.getParameter(request, DURATION,
DEFAULT_DURATION));
- long free = Runtime.getRuntime().freeMemory();
+ long free = Runtime.getRuntime().freeMemory() / 2;
@SuppressWarnings("unused")
Object array = null;