Author: sebb
Date: Thu Oct 16 16:12:41 2014
New Revision: 1632377

URL: http://svn.apache.org/r1632377
Log:
Add a bit of debug for Continuum failure - does max count need to be increased?

Modified:
    
commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java

Modified: 
commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
URL: 
http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java?rev=1632377&r1=1632376&r2=1632377&view=diff
==============================================================================
--- 
commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
 (original)
+++ 
commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
 Thu Oct 16 16:12:41 2014
@@ -483,6 +483,7 @@ public class MemoryLeakTestCase extends 
                     list.add("A Big String A Big String A Big String A Big 
String A Big String A Big String A Big String A Big String A Big String A Big 
String " + (i++));
                 }
             } catch (final Throwable ignored) {
+                System.out.println("Caught " + ignored); // debug for 
Continuum failure
             }
             list.clear();
             list = null;
@@ -492,10 +493,10 @@ public class MemoryLeakTestCase extends 
         }
         // System.out.println("After GC: " + getMemoryStats());
 
+        System.out.println("Count " + count); // debug for Continuum failure
         if (ref.get() != null) {
             throw new IllegalStateException("Your JVM is not releasing 
SoftReference, try running the testcase with less memory (-Xmx)");
         }
-        System.out.println("Count " + count); // debug for Continuum failure
     }
 
     /**


Reply via email to