ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: subant and memory problems
Date Sun, 04 Jun 2006 20:17:13 GMT
Antoine Reilles wrote:
> Hi,
> 
> For building the examples of the tom project (http://tom.loria.fr), we
> use the subant task, each example containing a build.xml snippet, using
>   <target name="build.all">
>     <subant target="build">
>       <fileset dir="." includes="*/build.xml"/>
>     </subant>
>   </target>
> Those examples do use the tom ant task to compile tom sources to java,
> and then javac. The tom ant task require to load the tom compiler, which
> is a java application. However, we currently notice memory problems when
> building all examples. For each example, ant do load all tom's compiler
> classes, but it seems they are never released. thus, after a few
> examples, ant dies with an OutOfMemory error. Buildinf with -v -d shows
> ant do load the classes of the tom compiler and all dependancies for
> each subant task, with
> 
> [snip]
> Finding class aterm.ATermAppl
> Loaded from /home/tonio/workspace/jtom/src/dist/lib/aterm.jar
> aterm/ATermAppl.class
> Class aterm.ATermAppl loaded from ant loader (parentFirst)
> [snip]
> 
> However, there is no mentions of unloading.
> Is it possible that ant do retain some memory, and thus causes the
> failure ? Or are we using the subant task incorrectly ?
> 

Is there any way to run the compiler in a new process?

some compilers (javac was always one) used to build up massive 
datastructures that would never get released...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message