Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-103

XMLBeans - QName thread cache, cause memory leaks

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Version 1.0.3
    • Fix Version/s: Version 2 Beta 2, Version 2
    • Component/s: None
    • Labels:
      None

      Description

      XMLBeans class uses thread local variables to store cache of QName objects (QNameCache instance).

      In application-server environments where threads are pooled, this causes situation that application using xml-beans library when undeployed is not garbage-collected, because its classloader is reachable from thread local variable.

      Possible solution would be to use memory-sensitive techniques using weak or soft references.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tawek Tomasz Wysocki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: