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

Memory leak related to shutdown hook

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Core
    • Labels:
      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

            • Assignee:
              remkop@yahoo.com Remko Popma
              Reporter:
              yang_zhong Yang ZHONG
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: