Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-586

Use of ThreadLocals in ToStringStyle and HashCodeBuilder trigger memory leaks in container environments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • lang.builder.*
    • None

    Description

      The thread local in org.apache.commons.lang3.builder.ToStringStyle is created but never removed and no API is provided to remove it. If a webapp's use of LANG triggers the loading of this class, a reference chain will be created that will cause a memory leak on web application reload.

      See http://markmail.org/thread/uetw2fdrsqgbh2cv for more info.

      Attachments

        Activity

          People

            Unassigned Unassigned
            markt Mark Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: