ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Tyler" <gordon.ty...@sitraka.com>
Subject Re: OutOfMemory error
Date Thu, 06 Jun 2002 17:30:45 GMT

----- Original Message -----
From: "Hertel, Oliver" <Oliver.Hertel@Dresdner-Bank.com>


> Hello,
>
> I get an OutOfMemoryError like this:
>
>     [javac] The system is out of resources.
>     [javac] Consult the following stack trace for details.
>
>     [javac] java.lang.OutOfMemoryError
>     [javac]     <<no stack trace available>>

<snip>

> Any hints? There are lots of source files in there, but the machine has
> surely enough memory (4 GB).

Javac is executed within in the same JVM as Ant. Unless you've changed the
Ant startup scripts, it's using the default JVM memory settings (-Xmx64m I
think). You need to set the ANT_OPTS environment variable to something like
this:

ANT_OPTS=-Xmx256m

Our project compiles about 1800 source files successfully with that setting.

Ciao,
Gordon



--
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