You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/10/16 18:21:08 UTC

svn commit: r1632378 - /commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java

Author: sebb
Date: Thu Oct 16 16:21:08 2014
New Revision: 1632378

URL: http://svn.apache.org/r1632378
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=1632378&r1=1632377&r2=1632378&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:21:08 2014
@@ -485,13 +485,17 @@ public class MemoryLeakTestCase extends 
             } catch (final Throwable ignored) {
                 System.out.println("Caught " + ignored); // debug for Continuum failure
             }
+            System.out.println("Count " + count + " : " + getMemoryStats());
+            // Trying to debug Continuum test fail: try calling GC before releasing the memory
+            System.gc();
+            System.out.println("After GC: " + getMemoryStats());
             list.clear();
             list = null;
-            // System.out.println("Count " + count + " : " + getMemoryStats());
+            System.out.println("Count " + count + " : " + getMemoryStats());
             System.gc();
+            System.out.println("After GC: " + getMemoryStats());
             Thread.sleep(1000);
         }
-        // System.out.println("After GC: " + getMemoryStats());
 
         System.out.println("Count " + count); // debug for Continuum failure
         if (ref.get() != null) {