ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniels, Doug" <>
Subject AW: Out of memory
Date Mon, 13 Sep 2004 14:04:26 GMT
I have a project that compiles on a fresh build around 1600+ java files, and then builds about
5 auxillary projects of around 200-500 java files a piece, and we used to get out of memory
errors when doing a straight <javac...>, here is how I fixed it.

<!-- fork the compile task and give it 1gb of memory to use -->
     <javac srcdir="${ProjSrc}" classpathref="project.classpath" debug="true"
            fork="true" memoryMaximumSize="1024m" includeAntRuntime="false">

<!-- compiles project source -->
	<include name="**/*.java" />

You can tweak the memoryMaximumSize, if you don't want to just throw 1GB at it.

Also look out for links in your javac source path, I know I've spent a couple hours looking
around for an error and realized there was a recursive link in the path that ANT would continuously
loop over it.

-----Original Message-----
From: Erskine, Chris []
Sent: Friday, September 10, 2004 6:16 PM
Subject: Out of memory

I am trying to create an ant script to build a project which has over 1100
classes in it.  I am getting an out of memory error.  Is there a way to
increase the memory to work with in this case?

Chris Erskine
EDS Consulting Services
2424 Garden of the Gods Rd
Colorado Springs, CO  80919
Phone: 719-535-6064
Phone: <> 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message