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

Memory leak related to shutdown hook

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6
    • Core
    • None

    Description

      Yang ZHONG reported this issue with the shutdown hook on LOG4J2-868 (cannot raise a new issue because this is disabled to defend against an Denial of Service attack):

      It's leaking memory in log4J 2.5 (AsyncLoggerContext) @ JDK 8u92.
      Total 2G memory used by 2 AsyncLoggerContext, each references 1G DefaultShutdownCallBackRegistry$1
      which references 4G DefaultShutdownCallBackRegistry
      which references 4G CopyOnWriteArrayList
      which references many many many DefaultShutdownCallBackRegistry$1
      How to turn it off or what's the work-around please?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rpopma Remko Popma
            yang_zhong Yang ZHONG
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment