[英]Build failed for Java Ant task in Jenkins
我在Amazon t2.micro Ubuntu實例的Jenkins中運行ant。 Java任務失敗。 以下是我的Jenkins控制台
[java] Compiling module com.eit.manufacturing.displayprocessor.Manufacturing
[java] Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ed84e000, 53288960, 0) failed; error='Cannot allocate memory' (errno=12)
[java] #
[java] # There is insufficient memory for the Java Runtime Environment to continue.
[java] # Native memory allocation (malloc) failed to allocate 53288960 bytes for committing reserved memory.
[java] # An error report file with more information is saved as:
[java] # /root/.jenkins/jobs/Manufacturing Apps/workspace/ManufacturingWeb/hs_err_pid5235.log
這是我的螞蟻腳本:
<target
name="clientcompile"
depends="servercompile"
description="GWT compile to JavaScript (production mode)" >
<java
classname="com.google.gwt.dev.Compiler"
failonerror="true"
fork="true" >
<classpath>
<pathelement location="src" />
<path refid="project.class.path" />
<pathelement location="${gwt.sdk}\validation-api-1.0.0.GA.jar" />
<pathelement location="${gwt.sdk}\validation-api-1.0.0.GA-sources.jar" />
</classpath>
<jvmarg value="-Xmx256M" />
<arg line="-war" />
<arg value="war" />
<arg line="${gwt.args}" />
<arg value="com.eit.manufacturing.displayprocessor.Manufacturing" />
</java>
</target>
如何解決這個問題呢?
對於java
任務,請嘗試以下操作
<jvmarg value="-Xmx1g" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.