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 (now while generating java doc)
Date Fri, 07 Jun 2002 15:56:17 GMT

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


> first tip worked for javac, thanks, but now the same happens in the
javadoc
> subprocess. I tried with export ANT_OPTS=-Xmx512m buth it seems the value
of
> memory here doesn't matter at all (tried with -Xmx1024m too).
>
>   [javadoc] javadoc: java.lang.OutOfMemoryError: Please increase memory.
>   [javadoc] 1 error
>   [javadoc] For example, on the Sun Classic or HotSpot VMs, add the option
> -J-Xmx
>   [javadoc] such as -J-Xmx32m.

Okay, the problem here is that Javadoc is executed a separate process but
the memory option is not passed onto it because Ant dosn't know what memory
options you used (they're used by the JVM and the Java app, Ant, never sees
them).

If you look at the Javadoc task doc page in the Ant manual, you'll see a
'maxmemory' attribute which you can use to specify the amount of memory.

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