You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2008/09/19 05:45:37 UTC
svn commit: r696905 -
/labs/magma/trunk/foundation-beans/src/test/java/org/apache/magma/beans/BeanHandlerTest.java
Author: simoneg
Date: Thu Sep 18 20:45:37 2008
New Revision: 696905
URL: http://svn.apache.org/viewvc?rev=696905&view=rev
Log:
Tuning on ram exhaustion test
Modified:
labs/magma/trunk/foundation-beans/src/test/java/org/apache/magma/beans/BeanHandlerTest.java
Modified: labs/magma/trunk/foundation-beans/src/test/java/org/apache/magma/beans/BeanHandlerTest.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/foundation-beans/src/test/java/org/apache/magma/beans/BeanHandlerTest.java?rev=696905&r1=696904&r2=696905&view=diff
==============================================================================
--- labs/magma/trunk/foundation-beans/src/test/java/org/apache/magma/beans/BeanHandlerTest.java (original)
+++ labs/magma/trunk/foundation-beans/src/test/java/org/apache/magma/beans/BeanHandlerTest.java Thu Sep 18 20:45:37 2008
@@ -55,13 +55,13 @@
int code = System.identityHashCode(h);
h2 = null;
h = null;
- // use all ram
+ // use a lot of ram
boolean allocate = true;
byte[][] buff = new byte[10000][];
int i = 0;
while (allocate && i < 10000) {
try {
- buff[i] = new byte[65535];
+ buff[i] = new byte[6000];
} catch (OutOfMemoryError e) {
buff = null;
System.gc();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org