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

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      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.
    • Estimated Difficulty:
      Medium

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shelly.mcgowan Shelly McGowan
                Reporter:
                arunsakthi Arunsakthi Kalyanasundharam
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: