Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPMONGODB-201: ThreadLocal memory leak warning from tomcat on stop #328

Closed
graemerocher opened this issue May 15, 2012 · 0 comments
Closed

Comments

@graemerocher
Copy link
Member

Original Reporter: bksaville
Environment: Not Specified
Version: 1.0.0.GA
Migrated From: http:https://jira.grails.org/browse/GPMONGODB-201

Filing this for mongo even though I'm pretty sure it is in the core datastore mapping classes:

{noformat}
SEVERE: The web application [/mws] created a ThreadLocal with key of type [org.grails.datastore.mapping.core.SoftThreadLocalMap](value [org.grails.datastore.mapping.core.SoftThreadLocalMap@1bc475]) and a value of type [org.apache.commons.collections.map.ReferenceMap](value [{com.example.User : 4fc29ccba2437de652de0cae=false, com.example.UserRole : 82=false}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
{noformat}

Any thoughts on how to workaround or where I can access the validation maps for each domain class centrally? I realize this probably is the exact same problem Burt blogged about awhile ago with the domain class plugin maps. I can provide the link if you don't know what I'm talking about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant