Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8389

Issue in using ThreadLocal

XMLWordPrintable

    • Medium
    • Workaround Exists
    • Hide

      We need to manually nullify/ clear off the threadlocal fields before the end of thread execution.

      Show
      We need to manually nullify/ clear off the threadlocal fields before the end of thread execution.

      I'm using Threadlocal in a web component. By definition, threadlocal variables should be cleared by end of execution of the thread. In case Application server, since its using a thread pool, the threadlocal variables are not cleared / garbage collected.

      This is leading to memory leakage (out of memory errors) and inconsistent behavior of the application since the variables are not getting cleared off.

              smcgowan@redhat.com Shelly McGowan (Inactive)
              arunsakthi Arunsakthi Kalyanasundharam (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: