Jenkins在maven编译的时候报错:
Jenkins报错Maven JVM terminated unexpectedly with exit code 137
[www-beijing-test] $ /usr/local/java/jdk1.8.0_111//bin/java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.12-alpha-1.jar:/usr/local/maven3.5/boot/plexus-classworlds-2.5.2.jar:/usr/local/maven3.5/conf/logging jenkins.maven3.agent.Maven35Main /usr/local/maven3.5 /var/cache/jenkins/war/WEB-INF/lib/remoting-3.10.2.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.12-alpha-1.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar 43409 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f /var/lib/jenkins/workspace/www-beijing-test/pom.xml clean install -Dmaven.test.skip=true ERROR: Maven JVM terminated unexpectedly with exit code 137 Finished: FAILURE
解决:
虚拟内存不够了。。。增加内存容量。