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

XMLBeans - QName thread cache, cause memory leaks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Version 1.0.3
    • Version 2 Beta 2, Version 2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: