Re: [mongodb-user] Mongo-Spring application fails to stop thread MongoCleaner with redeploy or restart Tomcat

125 views
Skip to first unread message

Scott Hernandez

unread,
Jun 28, 2012, 8:59:02 AM6/28/12
to mongod...@googlegroups.com
This is a dup, please follow up on the other thread.

On Thu, Jun 28, 2012 at 8:09 AM, grtvrt <gert.v...@gmail.com> wrote:
Hi,

I have an issue with my application based on spring-data-mongodb (101 release) and I use the mongo-java-driver 2.8.0.

When restarting Tomcat I get this message: 
SEVERE: The web application [/sky-rest-provider] appears to have started a thread named [MongoCleaner1055191651] but has failed to stop it. This is very likely to create a memory leak.

When redeploying i get this message:
SEVERE: The web application [/sky-rest-provider] created a ThreadLocal with key of type [com.mongodb.DBTCPConnector$1] (value [com.mongodb.DBTCPConnector$1@346f76f9]) and a value of type [com.mongodb.DBTCPConnector.MyPort] (value [com.mongodb.DBTCPConnector$MyPort@543efe7e]) 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. 

and indeed after a few redeploys I run into OutOfMemory:Permgen space error. I thought this was fixed in version 2.6, see link:https://jira.mongodb.org/browse/JAVA-306.

Is there something I have missed? Couldn't find anything usefull with an internetsearch... Time to ask the experts. 

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Reply all
Reply to author
Forward
0 new messages