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?