Login  Register

Re: Gradle plugin and permgen

Posted by rwinch on Nov 25, 2013; 6:46pm
URL: https://discuss.asciidoctor.org/Gradle-plugin-and-permgen-tp1040p1092.html

sebersole,

Thank you for your reply. Have you tried with the following steps? If not can you please try?

First make sure you are using the Gradle daemon. You can enable the Gradle daemon if you have the following defined in a file named gradle.properties in the root of your build (or in ~/.gradle/gradle.properties):

org.gradle.daemon=true

You should then be able to reproduce the crash consistently after after X times of running the build. For my very simple build it took about 15 tries, but this will vary depending on how many classes are being loaded by Gradle's ClassLoader.

I'm confident that I solved a leak for my particular build. This would certainly fix at least "a leak" for anyone using asciidoctor gradle plugin. However, I cannot be certain that it was the only leak and thus I cannot be certain it will resolve your issue completely.

Cheers,
Rob