When I stop Tomcat I get the following message: org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@645aa696]) and a value of type [org.apache.logging.log4j.core.async.RingBufferLogEventTranslator] (value [org.apache.logging.log4j.core.async.RingBufferLogEventTranslator@6caf0677]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
The nearest mention I found of something similar is https://issues.apache.org/jira/browse/LOG4J2-1172 which apparently was solved a while ago, so I'm guessing not relevant to the version I'm using. I'm using log4j-2.11.1. How can I solve this?