If SecurityContextHolder strategy is MODE_GLOBAL, this doesn't occur.
I don't find how to remove SecurityContextImpl [Null authentication]
.
Create war.
./gradlew war
Put the war file to tomcat webapps. Then the war is deployed.
cp build/libs/webclient-5.6.0-SNAPSHOT-plain.war /path/to/apache-tomcat/webapps/
And remove the war file to undeploy.
rm /path/to/apache-tomcat/webapps/webclient-5.6.0-SNAPSHOT-plain.war
changed the title
Undeploy shows SecurityContextImpl [Null authentication]] memory leak on tomcat
Undeploy shows SecurityContextImpl [Null authentication] memory leak on tomcat
Jun 2, 2021
To get current context without creating a new context.
Creating a new context may cause ThreadLocal leak.
Closes gh-9841