0

作为问题的序言,我已经阅读了有关“OutOfMemoryError:GC 开销限制超出”的回复和其他有用的回复,所以问题的重点不是 OutOfMemory 错误,而是为什么 antfailonerror="true"似乎没有陷入故障?

<java fork="true" dir="${deployDir}/jspc" classname="weblogic.appc" classpathref="appc.classpath" failonerror="true" >
   <jvmarg line="-Xms1024M -Xmx1636M"/>
   <arg line="-forceGeneration -verbose -deprecation ${sourceDir}/html"/>
</java>

日志显示:

[java] Exception encountered while compiling /source/html/future_requests/confirmation.jsp
[java] java.lang.OutOfMemoryError: GC overhead limit exceeded
[java]     at com.bea.core.repackaged.jdt.internal.compiler.flow.FlowContext.checkExceptionHandlers(FlowContext.java:206)
...
[java] Exception encountered while compiling /source/html/future_requests/confirmation.jsp
[java] java.lang.OutOfMemoryError: GC overhead limit exceeded
[java] Exception encountered while compiling /source/html/future_requests/confirmation.jsp
[java] java.lang.OutOfMemoryError: GC overhead limit exceeded
[java] <May 16, 2013 4:48:54 AM UTC> <Info> <J2EE> <BEA-160220> <Compilation completed successfully>

ant 似乎很高兴地继续执行构建指令。关于为什么蚂蚁没有使建筑物失败的任何建议?如何让蚂蚁保释?

谢谢

4

0 回答 0