Correction: for the perm gen, this is not exactly a heap dump, by
definition. IIRC, MAT or the likes should still be helpful.

What you want to identify is the class FQN and so on that are the most
present. Possibly, that'd help identiying which plugin or something is
responsible for that leak.


2016-08-27 23:11 GMT+02:00 Baptiste Mathus <m...@batmat.net>:

> This is definitely not normal. You should take a heap dump and use typical
> tools for analyzing such dumps in Java. Eclipse MAT is one of them,
> developed [originally?] by SAP IIRC, but there are many others.
>
> Also, I would definitely advise you to switch over to a JDK8, which hasn't
> permgen anymore. This is the JDK version we generally recommend. Note that
> the version of JDK used to run Jenkins can indeed be different than the
> one(s) used for your builds.
>
> Cheers
>
> 2016-08-27 18:28 GMT+02:00 grayaii <gray...@gmail.com>:
>
>> 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.ParametersActio
>> n.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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-users/025b4d0c-ce5a-4163-8447-6be523629cab%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/025b4d0c-ce5a-4163-8447-6be523629cab%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7fBd_QZMuDc_MUkiZ9iibbCYj5Mjvaaf5_07h31kw%3DrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to