You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Hertel, Oliver" <Ol...@Dresdner-Bank.com> on 2002/06/06 16:54:42 UTC
OutOfMemory error
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>>
BUILD FAILED
/eu/ffp/ffp_cwa/seu~publish_ux_1.1/seu/build/build.xml:19: Compile failed;
see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:820)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:660)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
at org.apache.tools.ant.Main.runBuild(Main.java:605)
at org.apache.tools.ant.Main.start(Main.java:195)
at org.apache.tools.ant.Main.main(Main.java:234)
I'm using this build.xml:
<?xml version="1.0"?>
<project name="ffp_src" default="compile" basedir="/data/work/build">
<!-- set global properties for this build -->
<property name="release" value ="8.0_dev" />
<property name="src" value="${release}_ux/src" />
<property name="build" value="${release}_ux/serverclasses" />
<target name="init">
<!-- create the time stamp -->
<tstamp/>
</target>
<target name ="compile" depends="init">
<!-- compile the java code from ${src} into ${build} -->
<javac srcdir="${src}"
destdir="${build}"
memoryInitialSize="32m"
memoryMaximumSize="256m"
/>
</target>
</project>
Any hints? There are lots of source files in there, but the machine has
surely enough memory (4 GB).
MfG,
Oliver Hertel
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: OutOfMemory error
Posted by Gordon Tyler <go...@sitraka.com>.
----- Original Message -----
From: "Hertel, Oliver" <Ol...@Dresdner-Bank.com>
> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>