Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1639

Memory leak due to literal keys in WSDLDefinition map

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.0.6
    • Fix Version/s: 2.1.1, 2.0.7
    • Component/s: Core
    • Labels:
      None

      Description

      The definitionsMap in WSDLManagerImpl holds the WSDLDefinitions against a weak key, again relying
      on the WeakHashMap semantics for removal.

      The loadDefinition(String) method loads the WSDLDef and puts this in a map
      against a String key. But this String key, is a literal String and will be
      present in the constant pool, where garbage collection never happens. This
      would mean the key would always be referenced from the constant pool, and
      the entry would never be removed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bharathganesh Bharath Ganesh
                Reporter:
                bharathganesh Bharath Ganesh
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: