ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Out of memory error when using external compiler
Date Tue, 09 Jul 2002 16:24:16 GMT

----- Original Message -----
From: "Suettenbach, Roger" <Roger.Suettenbach@Dresdner-Bank.com>
To: "'Ant Users List' (E-Mail)" <ant-user@jakarta.apache.org>
Sent: Tuesday, July 09, 2002 5:29 AM
Subject: Out of memory error when using external compiler


> Hi,
>
> I'm having memory problems :) when using the Clover Coverage tool. The
> following output should illustrate this.

> default:
>     [javac] Since build.compiler setting isn't classic or modern, ignoring
> fork setting.
>     [javac] Compiling 1139 source files
>    [clover] Clover Version 0.6b, built on June 26 2002
>    [clover] Updating database at './doc/clover/fs_coverage.db'
>    [clover] Clover all over. Instrumented 1139 files.
>     [javac] The compiler has run out of memory.  Consider using the
> "-J-mx<number>" command line option to increase the maximum heap size.
</target>


> My problem is that jdk1.3 doesn't support the -J-mx option, so that I
cannot
> use e.g. the 'memoryInitialSize' attribute. I also have no possibility to
> pass additional options to the CloverCompilerAdaper.
>

> Has anybody an idea how to increase the memory for an external compiler?

1. there is a -Xmx option in java1.3; type java -x to see what else it
offers
2. as you cant fork this compiler adapter, you need to up the ant memory, so
set
ANT_OPTS=-Xmx128m

or similar


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


Mime
View raw message