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:
java.lang.OutOfMemoryError: PermGen space
I have installed the monitor plugin and it claims there is only 82m available in the permgen. I have edited /etc/environment on my jenkins server to include the following lines:
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. I am running java 1.7.
Your /etc/environment might not be picked up by Jenkins. What Linux OS is it? Look for the jenkins daemon file ( /etc/init.d/jenkins ) and see how it builds the java command.
See output of ps -ef | grep jenkins
ps -ef | grep jenkins
. Check the actual memory parameters used by Java there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.