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

Memory leak related to shutdown hook

    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

        1. HeapDump.png
          210 kB
          Yang ZHONG

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: