Received: by 10.52.89.129 with SMTP id bo1mr9612912vdb.0.1341214611872; Mon, 02 Jul 2012 00:36:51 -0700 (PDT) X-BeenThere: mongodb-user@googlegroups.com Received: by 10.52.69.174 with SMTP id f14ls2902754vdu.2.gmail; Mon, 02 Jul 2012 00:36:40 -0700 (PDT) Received: by 10.52.34.9 with SMTP id v9mr507607vdi.9.1341214600393; Mon, 02 Jul 2012 00:36:40 -0700 (PDT) Date: Mon, 2 Jul 2012 00:36:39 -0700 (PDT) From: grtvrt To: mongodb-user@googlegroups.com Message-Id: <23851971-22d1-46f5-896d-c1dbd1878493@googlegroups.com> In-Reply-To: References: <3f8a7161-b946-443c-a792-188bc80ea4c6@googlegroups.com> Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_48_26633685.1341214599708" ------=_Part_48_26633685.1341214599708 Content-Type: multipart/alternative; boundary="----=_Part_49_16232940.1341214599708" ------=_Part_49_16232940.1341214599708 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Scott, Thanks for looking into this. I'm using Tomcat-7.0.19. I'm deploying with the maven-tomcat-plugin. But I get the same error with a hot-deploy from within eclipse or by restarting/shutdown of Tomcat . Mongo is a singleton which is instantiated by Spring. Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het volgende: > > What is your tomcat version/config? How are restarting/redeploying? > > On Thu, Jun 28, 2012 at 7:58 AM, grtvrt wrote: > >> 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. >> >> Can someone give me some clues of what's going on here. Is there >> something else I have missed? Couldn't find anything usefully 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 mongodb-user@googlegroups.com >> To unsubscribe from this group, send email to >> mongodb-user+unsubscribe@googlegroups.com >> See also the IRC channel -- freenode.net#mongodb >> > > Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het volgende: > > What is your tomcat version/config? How are restarting/redeploying? > > On Thu, Jun 28, 2012 at 7:58 AM, grtvrt wrote: > >> 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. >> >> Can someone give me some clues of what's going on here. Is there >> something else I have missed? Couldn't find anything usefully 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 mongodb-user@googlegroups.com >> To unsubscribe from this group, send email to >> mongodb-user+unsubscribe@googlegroups.com >> See also the IRC channel -- freenode.net#mongodb >> > > Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het volgende: > > What is your tomcat version/config? How are restarting/redeploying? > > On Thu, Jun 28, 2012 at 7:58 AM, grtvrt wrote: > >> 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. >> >> Can someone give me some clues of what's going on here. Is there >> something else I have missed? Couldn't find anything usefully 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 mongodb-user@googlegroups.com >> To unsubscribe from this group, send email to >> mongodb-user+unsubscribe@googlegroups.com >> See also the IRC channel -- freenode.net#mongodb >> > > ------=_Part_49_16232940.1341214599708 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Scott,

Thanks for looking into this. I'm using Tomcat-7.0.19. I'm deploying with the maven-tomcat-plugin. But  I get the same error with a hot-deploy from within eclipse or by restarting/shutdown of Tomcat . Mongo is a singleton which is instantiated   by Spring. 





Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het volgende:
What is your tomcat version/config? How are restarting/redeploying?

On Thu, Jun 28, 2012 at 7:58 AM, grtvrt <gert.vaart...@gmail.com> wrote:
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.

Can someone give me some clues of what's going on here. Is there something else I have missed? Couldn't find anything usefully 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 mongodb-user@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com
See also the IRC channel -- freenode.net#mongodb


Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het volgende:
What is your tomcat version/config? How are restarting/redeploying?

On Thu, Jun 28, 2012 at 7:58 AM, grtvrt <gert.vaart...@gmail.com> wrote:
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.

Can someone give me some clues of what's going on here. Is there something else I have missed? Couldn't find anything usefully 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 mongodb-user@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com
See also the IRC channel -- freenode.net#mongodb


Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het volgende:
What is your tomcat version/config? How are restarting/redeploying?

On Thu, Jun 28, 2012 at 7:58 AM, grtvrt <gert.vaart...@gmail.com> wrote:
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.

Can someone give me some clues of what's going on here. Is there something else I have missed? Couldn't find anything usefully 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 mongodb-user@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

------=_Part_49_16232940.1341214599708-- ------=_Part_48_26633685.1341214599708--