Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1142

ThreadLocals in Layout implementations may cause memory leaks in web containers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.4.1
    • Layouts
    • None

    Description

      As discussed in LOG4J2-1125, storing ThreadLocal<StringBuilder> in a static field may not interact well with the thread pools and class loaders of some web containers and may result in memory leaks, especially in older web containers.

      Attachments

        1. LOG4J2-1142.patch
          31 kB
          Ralph Goers

        Issue Links

          Activity

            People

              rpopma Remko Popma
              dmitri_blinov Dmitri Blinov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: