ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan McNaught <mcnau...@bea.com>
Subject Memory problems?
Date Thu, 16 May 2002 16:15:58 GMT
Hi,
    I am running multiple targets from a single one for nightly
automation with ant1.4.1. The main target calls out to other targets
which perform some large product builds, and during the last build I am
getting the following error:

justcompile:
    [javac] Compiling 866 source files to
D:\monkey\eca\main\tools\classes
    [javac]
    [javac]
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac]
    [javac] java.lang.OutOfMemoryError
    [javac]     <<no stack trace available>>

BUILD FAILED

I have increased the java memory settings in ant.bat to 512M:

:runAnt
"%_JAVACMD%" -Xmx512M -classpath "%LOCALCLASSPATH%"
-Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main
%ANT_CMD_LINE_ARGS%
   goto end

but still get the error.
Is ant keeping data in memory between my builds, (I am calling most of
them as ant antfile=) and if so is there a way to unload this - a kind
of garbage collection?
Thanks
--Duncan
-------------------
Duncan McNaught, Software Engineer
[Image]Systems, Inc.
   4001 Discovery Drive, Suite 340, Boulder, CO 80303
   mailto:duncan.mcnaught@bea.com
   Phone: (303) 998 2131
   http://www.bea.com


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message