I tried memoryinitialsize="512m" in the javac task and that makes no difference.
Ken -----Original Message----- From: Thomas Voigt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 10:00 AM To: Ant Users List Subject: Re: OutofMemoryError during compile target -------- Original-Nachricht -------- Datum: Thu, 7 Dec 2006 08:58:35 -0800 Von: "Kenneth Litwak" <[EMAIL PROTECTED]> An: [email protected] 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: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
