So far, upgrading to 1.38 seems a lot better on memory. I will continue to monitor and see how it goes. Thanks very much for the tip!
On Sun, Sep 13, 2015 at 12:32 PM Guenther, Marc(AWF) <[email protected]> wrote: > Hi, > > we had quite some severe memory problems with Job DSL Plugin, but then, we > were running it quite often (like, all the time...). In the end, it didn't > even survive one working day. > > Using the JavaMelody Monitoring Plugin, we saw an ever increasing sawtooth > in the "Used non-heap memory" and the "loaded classes count" graphs. We > increased max memory and PermGen, but that only delayed the inevitable, it > would always hit the max after a while. > > Running JProfiler on a test instance, we found two problems: > - JobParent gets injected into the Groovy compiler (only to output some > deprecation warning). This by now has been removed in 1.36 ( > https://github.com/jenkinsci/job-dsl-plugin/commit/066606f) > - In our dsl scripts, we stored quite a lot of information (stored as > local variables of JobParent class). We had to null all these variables, > otherwise their content was never gc'ed. Seems there is yet another leak of > JobParent somewhere, but we did not find that. > > We use monkey patching and Categories in our DSL scripts, but no mixins. > Memory is quite stable now, but we still restart Jenkins nightly, mostly > out of habit... > > Marc > > On 11 Sep 2015, at 04:37, Daniel Beck <[email protected]> wrote: > > > > > On 11.09.2015, at 01:51, Slide <[email protected]> wrote: > > > >> I would also like to know if anyone can help me figure out how to > profile Jenkins (while running under Tomcat) so I can determine where the > memory issues are coming from. > > > > Anything interesting in the heap dump? (Does /computer/(master)/heapDump > work when running in Tomcat?) > > > > If you have a bunch of GroovyClassLoaders, could be JENKINS-23762. > > -- > 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/3535EFE8-98AE-400A-9A60-75C7670B5D27%40ebay.com > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdsp8dQQPZocAcc9tP_LOZmY22KCfG0ZfrrJ2RyWad%2BMQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
