ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Voigt" <>
Subject Re: OutofMemoryError during compile target
Date Thu, 07 Dec 2006 18:00:04 GMT

-------- Original-Nachricht --------
Datum:  Thu, 7 Dec 2006 08:58:35 -0800
Von: "Kenneth Litwak" <>
Betreff:  OutofMemoryError during compile target

>   Does anyone have a suggestion for what I might try to figure out how
> to resolve or figure out this sudden, new problem on a process that has
> been working fine?

We had out of memory errors on and off when we used rather complicated ant scripts. Increasing
the memory allocated to ant didn't help. However, after reducing the number of targets and
antcalls in our scripts everything worked fine. 

>   Also, if I wanted to try to specify more memory during the compile,
> though I'm doubtful it will, help, how would I specify that for ant? I
> know how to do it for a straightforward compile with javac.  Thanks.

Try to add memory in the JAVA_OPTS and ANT_OPTS. We currently use -Xmx512M -Xms16M -XX:MaxPermSize=256m
(which may be pretty generous, but it seems to work).

Regards, Thomas

"Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

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

View raw message