ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhendi Su <rachael...@oracle.com>
Subject javac: compiler running out of memory
Date Fri, 01 Feb 2002 18:25:01 GMT
Hi,

When I use javac sometimes I get a "compiler running out of memory"
error message.  To fix this, I used the memoryMaximumSize="128m"
fork="True" attribute.   My javac task is defined as:

<javac memoryMaximumSize="128m" fork="True"
srcdir="${JAVAC_SRC}/authoring/controller"
destdir="${okcbasedir}/classes" target="1.1"
bootclasspath="/local/java/jdk1.1.8/lib/classes.zip" extdirs=" "
depend="True" failonerror="False">

<classpath path="${CLASSPATH}"/>
<exclude  name="${JAVAC_SRC}/authoring/controller/**/RCS/**" />
</javac>

But then I got the following error message:

BUILD FAILED

/home/rsu/okcbuild/okcbuild.xml:48: Error running javac compiler
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java,
Compiled Code)
        at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java,
Compiled Code)
        at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
        at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java, Compiled
Code)
        at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
        at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
--- Nested Exception ---
java.io.IOException: Not enough space
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java, Compiled Code)

        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java, Compiled Code)
        at
org.apache.tools.ant.taskdefs.Execute$CommandLauncher.exec(Execute.java,
Compiled Code)
        at
org.apache.tools.ant.taskdefs.Execute$CommandLauncherProxy.exec(Execute.java,
Compiled Code)
        at
org.apache.tools.ant.taskdefs.Execute$ScriptCommandLauncher.exec(Execute.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java,
Compiled Code)
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java,
Compiled Code)
        at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java,
Compiled Code)
        at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
        at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java, Compiled
Code)
        at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
        at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)



Does anyone have similar experience?  Could someone please help me?  We
need to compile a lot of .java classes every night and I don't want the
build process to fail because the compiler runs out of memory.  But the
fix above didn't seem to work....

Thanks a lot!

Zhendi Su


Mime
View raw message