Non heap memory leak

51 views
Skip to first unread message

Chris Doré

unread,
Sep 30, 2016, 10:35:32 AM9/30/16
to job-dsl-plugin
Hi all,

We recently upgraded our Jenkins to 2.7.4 and Job DSL 1.51 and Jenkins now has a non heap leak coming from loaded classes.


Using VisualVM with a heap dump from Jenkins shows all of the classes and closures used in our seed jobs to be each loaded many times over, with instance counts of 0. We are not using any meta programming/monkey patching (but I am double checking this), so I am unsure if this is the same issue as https://issues.jenkins-ci.org/browse/JENKINS-23762.

Any thoughts or advice?


Thanks,
Chris

Matt Sheehan

unread,
Sep 30, 2016, 10:55:25 AM9/30/16
to job-dsl-plugin
I've been having the same issue since upgrading. No meta programming here either. I'm having Jenkins restart itself every couple days as a workaround.

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/30161dc1-7417-4b92-bc7b-1ed48959acfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Doré

unread,
Sep 30, 2016, 11:30:54 AM9/30/16
to job-dsl-plugin
What version ranges are involved in your upgrade case? Perhaps we can help narrow this down to a changeset.
My upgrade range was massive and not terribly helpful (Jenkins 1.570 to 2.7.4 and Job DSL 1.25 to 1.51).


Chris

Matt Sheehan

unread,
Sep 30, 2016, 11:55:16 AM9/30/16
to job-dsl-plugin
I'm not sure. I usually upgrade to the latest every month or two, and I can't remember exactly when this issue started happening. I feel like it was probably around the time we switched from Jenkins 1.x to 2.x. Right now we're on Jenkins 2.16, DSL 1.51.

Daniel Spilker

unread,
Sep 30, 2016, 3:22:24 PM9/30/16
to job-dsl...@googlegroups.com
I think this is going to be fixed in Groovy 2.4.8, but has not been releaes yet.

Can you test the workaround and report the results?

Daniel


To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAKZH%3DdYhzMvw7gGr3Y0jtuMn5aCG5xfJ9h6Q50zK%3Dwte93Xm2A%40mail.gmail.com.

Matt Sheehan

unread,
Oct 3, 2016, 9:02:16 AM10/3/16
to job-dsl...@googlegroups.com
Adding -Dgroovy.use.classvalue=true seems to fix it for me. Thanks!

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.

Chris Doré

unread,
Oct 8, 2016, 10:57:27 AM10/8/16
to job-dsl-plugin
I got this into our config and are also no longer having issues. Thank you Daniel.
Reply all
Reply to author
Forward
0 new messages