Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-148

Huge memory leak resulting from the use of ThreadLocal

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      There is a huge memory leak that results from the TagScript's use of ThreadLocal.

      ThreadLocal is usually used from a staic variable, while TagScript uses it from an instance variable. Although this looks legal to me, it causes a huge memory leak.

        Attachments

        1. thread-local-memory-leak.zip
          2 kB
          Hans Gilde
        2. thread-local-memory-leak-fix-demo.txt
          3 kB
          Hans Gilde
        3. thread-local-memory-leak-profile.zip
          2 kB
          Hans Gilde
        4. thread-local-memory-leak-fix-demo-parent.txt
          19 kB
          Hans Gilde
        5. jelly-nothreadlocal.ZIP
          13 kB
          Guido Anzuoni
        6. thread-local-memory-leak-fix-final.txt
          10 kB
          Hans Gilde
        7. jelly-nothreadlocal2.ZIP
          6 kB
          Guido Anzuoni
        8. thread-local-memory-leak-fix-final-1.txt
          15 kB
          Hans Gilde
        9. thread-local-memory-leak-fix-final-xml-tags.txt
          3 kB
          Hans Gilde
        10. memory-leak-junit-test.txt
          7 kB
          Hans Gilde
        11. TagScript.java
          22 kB
          Paul Libbrecht

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hgilde Hans Gilde
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: