commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1632379 - /commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
Date Thu, 16 Oct 2014 16:31:13 GMT
Author: sebb
Date: Thu Oct 16 16:31:13 2014
New Revision: 1632379

URL: http://svn.apache.org/r1632379
Log:
More trying to fix Continuum fail

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=1632379&r1=1632378&r2=1632379&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:31:13 2014
@@ -482,18 +482,18 @@ public class MemoryLeakTestCase extends 
                 while (true && ref.get() != null) {
                     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
+                System.out.println("Count(1) " + count + " : " + getMemoryStats());
+            } catch (final OutOfMemoryError ignored) {
+                // Cannot do anything here
             }
-            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());
+            System.out.println("After GC1: " + getMemoryStats());
             list.clear();
             list = null;
-            System.out.println("Count " + count + " : " + getMemoryStats());
+            System.out.println("Count(2) " + count + " : " + getMemoryStats());
             System.gc();
-            System.out.println("After GC: " + getMemoryStats());
+            System.out.println("After GC2: " + getMemoryStats());
             Thread.sleep(1000);
         }
 



Mime
View raw message