groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Baev (JIRA)" <>
Subject [jira] [Commented] (GROOVY-7484) Permgen leak when load groovy classes via reflection
Date Mon, 27 Jul 2015 16:36:05 GMT


Dmitry Baev commented on GROOVY-7484:

 The problem is actually easy to solve with a workaround... share the runtime for the loaders.
Meaning make one classloader for the runtime, and one for the scripts as a child to that loader.
This way the classes of the runtime are shared. 

I tried to use the same workaround before submitting the issue. And it works only if you use
system class loader with groovy runtime as the parent. But If I create the other UrlClassLoader
without parent with groovy runtime it still leak. 

So in my case I can not use the system class loader as the parent

> Permgen leak when load groovy classes via reflection
> ----------------------------------------------------
>                 Key: GROOVY-7484
>                 URL:
>             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

This message was sent by Atlassian JIRA

View raw message