Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-572

Possible memory leak when using CombinedConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      We altered our code to use CombinedConfiguration in a more dynamic way and immediately started to see large memory usage. Looking for a potential leak, we realised we were missing a clear() when the config objects were done with.

      Even with this call in, the leak persisted. It seems that whilst the clear() method cleans up the object, it doesn't clear the listener list as well. This leaves around stale references which then never become GC.

      Will attach the patch we found worked at curing this

      Attachments

        1. 2960.patch
          1 kB
          Rob Walker

        Activity

          People

            Unassigned Unassigned
            walkerr Rob Walker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: