commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1632378 - /commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
Date Thu, 16 Oct 2014 16:21:08 GMT
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) {



Mime
View raw message