简体   繁体   English

尽管设置较高,但Jenkins PermGen错误

[英]Jenkins PermGen errors despite higher setting

I am running a fairly new jenkins install on ubuntu 13.10 and I can't seem to get the thing to stay up more than a couple hours before I start getting memory errors like the following: 我正在ubuntu 13.10上运行一个相当新的jenkins安装,在开始出现如下所示的内存错误之前,我似乎无法将事情保持几个小时以上:

java.lang.OutOfMemoryError: PermGen space

I have installed the monitor plugin and it claims there is only 82m available in the permgen. 我已经安装了Monitor插件,它声称permgen中只有82m可用。 在此处输入图片说明 I have edited /etc/environment on my jenkins server to include the following lines: 我在jenkins服务器上编辑了/ etc / environment,以包括以下几行:

JAVA_OPTS="-XX:PermSize=512m -XX:MaxPermSize=512m -Xms768m -Xmx1024m"
JAVA_ARGS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -XX:PermSize=512m -XX:MaxPermSize=512m -Xms768m -Xmx1024m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"

I am pretty sure that the args are getting picked up because my timezone seems correct now. 我很确定args会被接收,因为现在我的时区似乎正确了。 I am running java 1.7. 我正在运行Java 1.7。

Your /etc/environment might not be picked up by Jenkins. 您的/ etc / environment可能不会被Jenkins接收。 What Linux OS is it? 它是什么Linux操作系统? Look for the jenkins daemon file ( /etc/init.d/jenkins ) and see how it builds the java command. 查找jenkins守护程序文件( /etc/init.d/jenkins ),并查看其如何构建Java命令。

See output of ps -ef | grep jenkins 查看ps -ef | grep jenkins输出ps -ef | grep jenkins ps -ef | grep jenkins . ps -ef | grep jenkins Check the actual memory parameters used by Java there. 在此处检查Java使用的实际内存参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM