Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6476

ClassLoader and Memory leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0, 4.2.8
    • Component/s: karaf
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              j3rem1e J. Brébec
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: