In case the problem does not resolve by changing the ANT_OPTS, you should
try out the following in your javac task:
fork="yes"
memoryInitialSize="512m"
memoryMaximumSize="1024m"
here 512m and 1024m are just for the sake of example.
Thanks
_____________________________________
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416
"Gordon Tyler" <[EMAIL PROTECTED]>
06/06/02 11:00 PM
Please respond to "Ant Users List"
To: "Ant Users List" <[EMAIL PROTECTED]>
cc:
Subject: Re: OutOfMemory error
----- Original Message -----
From: "Hertel, Oliver" <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>