Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51635 invoked from network); 2 Jun 2006 10:07:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 10:07:35 -0000 Received: (qmail 88361 invoked by uid 500); 2 Jun 2006 10:07:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 88312 invoked by uid 500); 2 Jun 2006 10:07:28 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 88281 invoked by uid 99); 2 Jun 2006 10:07:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 03:07:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of paranoiabla@gmail.com designates 66.249.82.206 as permitted sender) Received: from [66.249.82.206] (HELO wx-out-0102.google.com) (66.249.82.206) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 03:07:25 -0700 Received: by wx-out-0102.google.com with SMTP id i28so334815wxd for ; Fri, 02 Jun 2006 03:07:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QGoVloqM2dLJfNwpP6PNpMQs2v7xUmOao0VsFDwSxNlC2L91SqV86SP04KaGQ2Xso5MeQtFWTgG4HnZISuo2ABugBMScY8IA6LklMmMZ1zVsruu0QbG6bDQcbUABygEqnruJqh2rjpdEUpKhN6fDPQUDrFp+GM6R7N3cFwQ1M2w= Received: by 10.70.68.13 with SMTP id q13mr2205726wxa; Fri, 02 Jun 2006 03:07:04 -0700 (PDT) Received: by 10.70.28.4 with HTTP; Fri, 2 Jun 2006 03:07:04 -0700 (PDT) Message-ID: Date: Fri, 2 Jun 2006 10:07:04 +0000 From: "Petar Tahchiev" To: "Ant Users List" Subject: Re: Getting OutOfMemoryErrors with fileset-task In-Reply-To: <20060602105529.2indji6ky7sowg8c@webmail.goracer.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060602105529.2indji6ky7sowg8c@webmail.goracer.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 02/06/06, rene.schuenemann@orange-pages.de wrote: > Hi, > > i'm getting OutOfMemory-Errors while executing a fileset-task. > My Buildfile looks like this: > > > > > > > > > > extension=".xml" includes="*testresult*" > style="/build/configs/cppunittransform.xsl"/> > > > > > This is what ant generates when i'm running the buildfile: > > > Apache Ant version 1.6.5 compiled on June 2 2005 > Apache Ant version 1.6.5 compiled on June 2 2005 > Buildfile: build.xml > Adding reference: ant.PropertyHelper > Detected Java version: 1.5 in: > /export/development/systems/linux/8.1b/opt/java/sun/jdk1.5.0_02/jre > Detected OS: Linux > Adding reference: ant.ComponentHelper > Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on > June 2 2005 > Setting ro project property: ant.file -> > /export/home/r/resc/mnt/serverhome/buildtest/build.xml > Adding reference: ant.projectHelper > Adding reference: ant.parsing.context > Adding reference: ant.targets > parsing buildfile /export/home/r/resc/mnt/serverhome/buildtest/build.xml with > URI = file:///export/home/r/resc/mnt/serverhome/buildtest/build.xml > Setting ro project property: ant.project.name -> foo > Adding reference: foo > Setting ro project property: ant.file.foo -> > /export/home/r/resc/mnt/serverhome/buildtest/build.xml > Project base dir set to: /export/home/r/resc/mnt/serverhome/buildtest > +Target: > +Target: bar > Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor > Adding reference: ant.executor > Build sequence for target(s) `bar' is [bar] > Complete build sequence is [bar, ] > > bla: > Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) > for type image > Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec > Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp > Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend > Could not load a dependent class (junit/framework/Test) for type junit > fileset: Setup scanner in dir /export/home/r/resc/mnt/serverhome/buildtest/myDir > with patternSet{ includes: [**/*.xml] excludes: [] } > > BUILD FAILED > java.lang.OutOfMemoryError: Java heap space > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225) > at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > at org.apache.tools.ant.Project.executeTargets(Project.java:1068) > at org.apache.tools.ant.Main.runBuild(Main.java:668) > at org.apache.tools.ant.Main.startAnt(Main.java:187) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > Caused by: java.lang.OutOfMemoryError: Java heap space > --- Nested Exception --- > java.lang.OutOfMemoryError: Java heap space > > > There are some folders under "${basedir}/myDir". But the strange thing is, if I > set it to a directory with no subfolders, the thask performs very well. > I've already set the maximum heap-space to 500m, but that doesn't helps. > I changed my jvm to 1.4 with the same result. > Has anybody an idea how to fix that? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > I am not quite sure if this will help but once I read about such a problem(although it was in Ant 1.6.4.) and solution was to set the "ANT_OPTS" environment variable to "-Xmx256m". -- Regards, Petar! Karlovo, Bulgaria. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org