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:
How do you debug this?
Something must be loading classes continuously.
Any ideas how we can debug this?