You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2019/10/23 18:52:00 UTC

[jira] [Assigned] (KARAF-6476) ClassLoader and Memory leak

     [ https://issues.apache.org/jira/browse/KARAF-6476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Yue Fang reassigned KARAF-6476:
---------------------------------------

    Assignee: Freeman Yue Fang

> ClassLoader and Memory leak
> ---------------------------
>
>                 Key: KARAF-6476
>                 URL: https://issues.apache.org/jira/browse/KARAF-6476
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.0
>            Reporter: J. Brébec
>            Assignee: Freeman Yue Fang
>            Priority: Major
>             Fix For: 4.3.0, 4.2.8
>
>
> I am experiencing huges memory leak when I install a feature which refresh a lot of bundles.
> After analysing several heapdump, these leaks seem related to KARAF-5506 : The class SecuredSessionFactoryImpl has a ThreadLocal<> serviceVisibleMap referencing all services used by commands, and this map is not cleaned when a service is removed (at least, I didn't see who is responsible to clean this map)
> Every time a service changed, a new entry is added to this map. Moreover, if a bundle is refresh, the classloader associated with the old bundle is keep in memory because of this map



--
This message was sent by Atlassian Jira
(v8.3.4#803005)