ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Dettori" <markus.dett...@wuerth-phoenix.com>
Subject Re: OutofMemory Problem
Date Mon, 14 Apr 2003 10:41:24 GMT
gautam m <gautamms_10@lycos.com> scribbled earlier on Monday, April 14, 2003
12:35 PM:

> Hi ,
>   I am getting java.lang.outofMemory Problem while using ant tool,
>   ONe of the suggestion given was use ANT_OPTS=-Xmx256m.
>   This option has to be given in this way export ANT_OPTS=-Xmx256m
>   giving it in this way and then giving command ant -verboes.
>   I dont see this option being picked up.
>
>   Can anyone clarify.
>
>   <target name="compile"  depends="init"
>     description="--> Compile Tests">
>     <javac srcdir="."
>       destdir="/nsjusr/gautam/javap/tux/classes"
>       debug="true"
>       deprecation="${deprecation}"
>       optimize="false"
>       nowarn="${nowarn}"
>       verbose="${verbose}"
>       includes="*.java"/>
>
>
> Rgds,
> Gautam.M.S
>


Hi again,
so give the javac task these params:

    fork="yes"
    memoryMaximumSize="1024m"

1GB might be a lot, but anyway set it higher, and fork it.

hth
Markus






Mime
View raw message