I tried this tweaking the startup options, but things still grow:
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true *-Xms4096m -Xmx4096m 
-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC* 
-Dhudson.model.ParametersAction.keepUndefinedParameters=true"


We are using system groovy script and the python jenkinsapi pip module to 
do a lot of things, so I bet something changed in the way things load in 
groovy.

I just found a JIRA ticket associated with this:
https://issues.jenkins-ci.org/browse/JENKINS-33358

I ran the scripts here: 
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+Scripts and I see a 
bazillion things like this (Display heap histogram (object instances per 
class)):

sun.reflect.GeneratedMethodAccessor

sun.reflect.GeneratedSerializationConstructorAccessor


I'll see if adding this helps any:

-Dgroovy.use.classvalue=true


Alex

On Saturday, August 27, 2016 at 12:28:44 PM UTC-4, grayaii wrote:
>
> We went from Jenkins 1.651.1 to 2.7.2 and our Jenkins master kept on 
> crashing with:
> java.lang.OutOfMemoryError: PermGen space
>
> Where were not specifying -XX:MaxPermSize in our JENKINS_JAVA_OPTIONS 
> before, so I added it, and kept on increasing the value after every crash.
> We are now at 512m:
>
> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xms3584m -Xmx3584m 
> -XX:MaxPermSize=512m 
> -Dhudson.model.ParametersAction.keepUndefinedParameters=true"
>
> Using the Jenkins Monitoring plugin, we see that the Loaded Classes Count 
> keeps growing without stopping:
>
>
> <https://lh3.googleusercontent.com/-KnFb1isIibc/V8G_bAUCMzI/AAAAAAAADYk/b0XjUEGvWVM8mumIpJrTB0WEkerXBqyVwCLcB/s1600/jenkins.png>
> How do you debug this? 
> Something must be loading classes continuously.
>
>
> Any ideas how we can debug this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8d0fdeb1-e30b-4912-825c-376331795e61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to