Details
-
Task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Description
Problem
While running the JobDSL scripts in Jenkins, after some time, Jenkins is restarted by Kubernetes cos a Java OOM is happening.
The problem is known by the Jenkins devs, see JENKINS-37213.
To get rid of the leak, we would have to upgrade to Jenkins 2.60+ but then other problems occur.
The devs suggest to use the java system property -Dgroovy.use.classvalue=true while starting Jenkins.
AT
- add -Dgroovy.use.classvalue=true to Jenkins JAVA_OPTS to reduce memory leakage