ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff" <>
Subject Re: Running out of Memory
Date Thu, 05 Apr 2001 12:05:34 GMT
If you are using the JBuilder AntRunner plug-in this method won't help, but
I found
running JBuilder via the command-line is quicker and uses less memory.

Attached is the optional task I use to compile builds with JBuilder and here

is an example of how I use it:

<project name="Build" default="RunTests">
 <taskdef name ="JBuilderTask"

 <!-- compile the code based on the JBuilder parms in the project directory
  <target name="compileModule" depends="cvsGrabModule">

    <JBuilderTask ProjectPath="./${}"
ProjectName="${}" abortOnError="yes"
JBuilderExecPath="C:\\JBuilder4\\bin" />

Bevan Arps wrote:

> Gidday everyone.
> I have a problem with my ANT script running out of memory in mid flight.
> I have already set -Mx256M and it doesn't help - the problem appears to
> be that ANT is taking so much memory that other applications (launched
> through exec/execon) can't work.
> I'm running Ant 1.3 under JDK 1.3 from JBuilder 4 Foundation on Win NT4
> sp 5 with 128M physical memory.
> Does anyone have any hints on how to reduce the amount of memory used by
> Ant - is there a better JVM to use, or a way to force better garbage
> collection?
> I can email my build.xml file to the list if you like - but it's almost
> 100K and I don't want to flood the list.
> Thanks in advance,
> Bevan.
> --
> _______________________________________________________________________
> Bevan Arps, OO Analyst                    email:
> ACT Financial Systems     "Programming is an Art Form that Fights Back"
> ***********************************************************************
> This  communication  is confidential  to ACT  Financial  Systems  (Asia
> Pacific)  and is intended for  use only by the  addressee.   The  views
> and opinions  expressed in  this email  are the senders  own and do not
> represent  the  views  and  opinions of  ACT  Financial  Systems  (Asia
> Pacific).
> ***********************************************************************

View raw message