Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D44017DFE for ; Thu, 16 Oct 2014 16:31:35 +0000 (UTC) Received: (qmail 59999 invoked by uid 500); 16 Oct 2014 16:31:35 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 59921 invoked by uid 500); 16 Oct 2014 16:31:35 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 59911 invoked by uid 99); 16 Oct 2014 16:31:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 16:31:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 16:31:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id BC2F823889D5; Thu, 16 Oct 2014 16:31:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141016163113.BC2F823889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); }