01-Sep-2020 11:28:47.778 严重 [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [xxx] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current AOP method invocation]) and a value of type [org.springframework.aop.framework.CglibAopProxy.CglibMethodInvocation] (value [ReflectiveMethodInvocation: xxx(int,int); target is of class [xxxImpl]]) 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.
A preliminary analysis is caused by the introduction of AOP, but don't know how to solve specific reason and
I hope the great god give directions
CodePudding user response:
I think this is not a problem, you stop the process, why the tube this abnormal? A scene remind scene with you now is not the same thingCodePudding user response:
Check use ThreadLocal