[Geoserver-devel] [jira] (GEOS-5730) Tomcat complains about security related thread locals on shutdown/undeploy

Andrea Aime created BugGEOS-5730
Tomcat complains about security related thread locals on shutdown/undeploy

Issue Type:

BugBug

Affects Versions:

2.3.0

Assignee:

Christian Mueller

Components:

Security

Created:

26/Mar/13 8:46 AM

Description:

GRAVE: The web application [/geoserver] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@anonymised.com]) and a value of type [org.springframework.security.core.context.SecurityContextImpl] (value [org.springframework.security.core.context.SecurityContextImpl@anonymised.com: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

Hum… maybe it’s just the spring security context holder, wondering, isn’t Spring doing anything to remove it at the end of the request? If not, we should do so ourselves

Potentially related conversation:
http://forum.springsource.org/showthread.php?107692-Memory-Leak-SecurityContextImpl-held-in-ThreadLocal

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Andrea Aime

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)