Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1844

XMLReaderManager provides neither a way to clear its cache nor does it clear its cache by itself

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.7.1
    • 2.7
    • Other
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Operating System: All
      Platform: All
    • 28082

    Description

      Considering a highly multithreaded system, where threads have a short living
      time, and some of the threads perform XSLT transformation, but only once, the
      JVM soon reaches memory saturation, since XMLReaders are never re-used.

      I would suggest maybe to keep the ThreadLocal mechanism instead of the map +
      ThreadLocal duet which appears redundant to me, but maybe i am missing some point ?

      André

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--XMLReaderManager.java
          2 kB
          Andre Doherty
        2. ASF.LICENSE.NOT.GRANTED--XMLReaderManager.java
          5 kB
          F. Andy Seidl
        3. ASF.LICENSE.NOT.GRANTED--28082.patch
          0.7 kB
          Morris Kwan

        Issue Links

          Activity

            People

              keshlam@alum.mit.edu Joe Kesselman
              andre.doherty@libertysurf.fr Andre Doherty
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: