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

ThreadLocals in Layout implementations may cause memory leaks in web containers

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.1
    • Component/s: Layouts
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                dmitri_blinov Dmitri Blinov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: