Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OutOfMemoryError: PermGen space, Java Oracle7, gradle>2.1, Codenarc >0.21 #116
I will try to reproduce locally, so far this only happens on my CI server, See https://travis-ci.org/tkruse/gradle-groovysh-plugin/builds/74782394
I could reproduce for 0.21, 0.22, 0.23 and 0.24, though 0.22 and 0.23 seem to work fine with gradle 2.3 (but not 2.4 or 2.5).
Travis uses oracle java version "1.7.0_76", whereas locally I use "1.7.0_80".
Note the error happens always on the same groovy file, the contents of which are:
This being the only test groovy file in the project where the build fails.
This only seems to occur when running a full
I could not reproduce with --debug on travis (logfile too long), but here is the final output of --info:
It seems I can reliably reproduce on Travis, though my builds take 6 minutes to finish.
However I am not sure that codenarc is the culprit, maybe it is a coincidence that for these builds, it just uses up the last bit of memory. Close this issue if you think that is the case.
For reference, I think I have found the reason for the leak. I am working on a fix, it is explained here: http://melix.github.io/blog/2015/08/permgenleak.html