You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Jochen Theodorou (JIRA)" <ji...@apache.org> on 2015/07/27 18:48:04 UTC

[jira] [Comment Edited] (GROOVY-7484) Permgen leak when load groovy classes via reflection

    [ https://issues.apache.org/jira/browse/GROOVY-7484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643005#comment-14643005 ] 

Jochen Theodorou edited comment on GROOVY-7484 at 7/27/15 4:47 PM:
-------------------------------------------------------------------

you mean instead of{code:Java}
loop begin
 return new URLClassLoader(new URL[]{
getClass().getClassLoader().getResource("groovy-all-2.4.3-indy.jar"),
getClass().getClassLoader().getResource("groovy-permgen-leak-testbean-1.0-SNAPSHOT.jar"),
}, null);
loop end
{code}
you did {code:Java}
URLClassLoader parent = new URLClassLoader(new URL[]{getClass().getClassLoader().getResource("groovy-all-2.4.3-indy.jar"),},null);
loop begin
return new URLClassLoader(new URL[]{getClass().getClassLoader().getResource("groovy-permgen-leak-testbean-1.0-SNAPSHOT.jar")}, parent);
loop end
{code}
Like that? I mean especially having parent out of the loop?


was (Author: blackdrag):
you mean instead of{codeJava}
loop begin
 return new URLClassLoader(new URL[]{
getClass().getClassLoader().getResource("groovy-all-2.4.3-indy.jar"),
getClass().getClassLoader().getResource("groovy-permgen-leak-testbean-1.0-SNAPSHOT.jar"),
}, null);
loop end
{code}
you did {code:Java}
URLClassLoader parent = new URLClassLoader(new URL[]{getClass().getClassLoader().getResource("groovy-all-2.4.3-indy.jar"),},null);
loop begin
return new URLClassLoader(new URL[]{getClass().getClassLoader().getResource("groovy-permgen-leak-testbean-1.0-SNAPSHOT.jar")}, parent);
loop end
{code}
Like that? I mean especially having parent out of the loop?

> Permgen leak when load groovy classes via reflection
> ----------------------------------------------------
>
>                 Key: GROOVY-7484
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7484
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>            Reporter: Dmitry Baev
>
> PermGen leak when load groovy beans via reflection using different class loaders. Sample project to reproduce the problem https://github.com/baev/groovy-permgen-leak



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)