[
https://issues.apache.org/jira/browse/LOG4J2-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15287099#comment-15287099
]
Yang ZHONG commented on LOG4J2-1387:
------------------------------------
Heap dump (attached) was generated by "-XX:+HeapDumpOnOutOfMemoryError", the
time to reach Out Of Memory was a few hours.
> Memory leak related to shutdown hook
> ------------------------------------
>
> Key: LOG4J2-1387
> URL: https://issues.apache.org/jira/browse/LOG4J2-1387
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.5
> Reporter: Yang ZHONG
> Attachments: HeapDump.png
>
>
> [~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):
> {quote}
> 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?
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]