系统环境如下:
1.CentOS 5.11
2.Jenkins 2.7
/var/log/jenkins.log报错:
Mar 05, 2017 4:55:03 AM hudson.util.ExceptionCatchingThreadFactory uncaughtException
WARNING: Thread FilePath.localPool [#67] terminated unexpectedly
java.lang.OutOfMemoryError: PermGen space
解决方法:
vim /etc/sysconfig/jenkins
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xmx1024m -XX:MaxPermSize=512m"
参考PermGen Space issue in Jenkins(英文):