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

ThreadLocals in Layout implementations may cause memory leaks in web containers

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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:
              rpopma Remko Popma
              Reporter:
              dmitri_blinov Dmitri Blinov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment