Return-Path: X-Original-To: apmail-continuum-issues-archive@www.apache.org Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4541510313 for ; Wed, 12 Jun 2013 04:55:32 +0000 (UTC) Received: (qmail 99251 invoked by uid 500); 12 Jun 2013 04:55:32 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 99194 invoked by uid 500); 12 Jun 2013 04:55:31 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 99171 invoked by uid 99); 12 Jun 2013 04:55:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 04:55:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 04:55:23 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 41CEDB1033 for ; Tue, 11 Jun 2013 23:55:03 -0500 (CDT) Date: Tue, 11 Jun 2013 23:55:03 -0500 (CDT) From: "Brent N Atkinson (JIRA)" To: issues@continuum.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (CONTINUUM-2119) Cleaning up large working directories fails with OutOfMemoryError MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/CONTINUUM-2119?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D32659= 9#comment-326599 ]=20 Brent N Atkinson commented on CONTINUUM-2119: --------------------------------------------- Brett, your comment:=20 {quote} need to be able to upgrade plexus-utils first {quote} Why do you say that upgrading plexus-utils necessary? =20 > Cleaning up large working directories fails with OutOfMemoryError=20 > ------------------------------------------------------------------ > > Key: CONTINUUM-2119 > URL: https://jira.codehaus.org/browse/CONTINUUM-2119 > Project: Continuum > Issue Type: Bug > Components: Core system > Affects Versions: 1.2.3 > Reporter: Frank F=F6rstemann > Assignee: Brent N Atkinson > Fix For: 1.4.2 > > Attachments: CONTINUUM-2119-continuum-core.patch > > > The action clean-working-directory runs out of heap space while cleaning = up huge working directories (30GB / 500.000 files & directories in our case= ): > 2009-03-08 06:00:14,582 [pool-1-thread-1] INFO buildController - Initia= lizing build > 2009-03-08 06:00:15,286 [pool-1-thread-1] INFO buildController - Starti= ng build of ivu_plan_nightly_build > 2009-03-08 06:00:15,301 [pool-1-thread-1] INFO buildController - Purgin= g exiting working copy > 2009-03-08 06:00:15,301 [pool-1-thread-1] INFO buildController - Perfor= ming action clean-working-directory > 2009-03-08 06:31:39,209 [Thread-3] ERROR taskQueueExecutor#build-project = - Error executing task > edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: java.l= ang.OutOfMemoryError: Java heap space > =09at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult= (FutureTask.java:301) > =09at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(Futur= eTask.java:120) > =09at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$E= xecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159) > =09at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$E= xecutorRunnable.run(ThreadedTaskQueueExecutor.java:127) > Caused by: java.lang.OutOfMemoryError: Java heap space > The issue seems to be caused by the implementation in CleanWorkingDirect= oryAction: the FileSetManager used to delete the working directory first sc= ans all files & directores to create an object representation of the tree a= nd then deletes the tree by scanning through the objects. As no filter cond= ition is required using org.codehaus.plexus.util.FileUtils to directly dele= te the tree would avoid these kind of problems. > I'll attach a patch based on 1.2.3. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira