Login  Register

Re: Gradle plugin and permgen

Posted by rwinch on Nov 24, 2013; 2:23am
URL: https://discuss.asciidoctor.org/Gradle-plugin-and-permgen-tp1040p1069.html

sebersole,

I found the issue (or at least one Permgen leak). I have added a comment on the issue with the full details. It would be nice if you could verify that the workaround fixes the issue for you. If not, I may need to get a sample document that recreates the issue. In short, the workaround is to add the following within your gradle build:

apply plugin: 'asciidoctor'

asciidoctor {
    // ...
    doFirst {
        System.setProperty('jruby.logger.class','org.jruby.util.log.StandardErrorLogger')
    }
}

Please let me know if this resolves your issue.

Cheers,
Rob