Skip to content

GPMONGODB-364: MongoDB plugin does not close connections upon shutdown #297

@graemerocher

Description

@graemerocher

Original Reporter: jgibson
Environment: Tomcat
Version: 2.0.0.GA
Migrated From: http://jira.grails.org/browse/GPMONGODB-364

The MongoDB plugin does not close connections when the webapp is undeployed. When running in Tomcat after undeploying a Grails webapp with the MongoDB plugin the following error is logged:

Mar 24, 2014 12:00:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/abi-explorer] appears to have started a thread named [MongoCleaner897194512] but has failed to stop it. This is very likely to create a memory leak.

Because the webapp isn't cleanly undeployed the PermGen memory is never released and eventually Tomcat fails with OutOfMemory errors.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions