Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
grtvrt  
View profile   Translate to Translated (View Original)
 More options Jun 28 2012, 2:58 am
From: grtvrt <gert.vaart...@gmail.com>
Date: Wed, 27 Jun 2012 23:58:00 -0700 (PDT)
Subject: Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile   Translate to Translated (View Original)
 More options Jun 28 2012, 8:58 am
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Thu, 28 Jun 2012 13:58:43 +0100
Local: Thurs, Jun 28 2012 8:58 am
Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

What is your tomcat version/config? How are restarting/redeploying?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
grtvrt  
View profile  
 More options Jul 2 2012, 3:36 am
From: grtvrt <gert.vaart...@gmail.com>
Date: Mon, 2 Jul 2012 00:36:39 -0700 (PDT)
Local: Mon, Jul 2 2012 3:36 am
Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

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:

Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het
volgende:

Op donderdag 28 juni 2012 14:58:43 UTC+2 schreef Scott Hernandez het
volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options Jul 2 2012, 6:49 am
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Mon, 2 Jul 2012 11:49:23 +0100
Local: Mon, Jul 2 2012 6:49 am
Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

Can you run a debugger, or write some code to verify that there aren't
multiple instances, because I've seen spring environments where the
configuration believed to be correct did not ensure it was actually a
singleton.

Since your setup is not trivial and there are many options which could be
affecting the config can you provide a simple reproduction case someone can
run and debug? It is probably best to file this as a java jira issue since
it will require reproducing it with whatever you provide:
http://jira.mongodb.org/browse/JAVA/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
grtvrt  
View profile  
 More options Jul 3 2012, 5:59 am
From: grtvrt <gert.vaart...@gmail.com>
Date: Tue, 3 Jul 2012 02:59:22 -0700 (PDT)
Local: Tues, Jul 3 2012 5:59 am
Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

Hi Scott,

I created an issue here, https://jira.mongodb.org/browse/JAVA-595 . I have
made a simple webapp without Spring interference. This solved the error
message on shutting down. However the error message still appears on a
redeploy, though it's slightly  different. It says now:

SEVERE: The web application [/MongoReporter] created a ThreadLocal with key
of type [com.mongodb.DBTCPConnector$1] (value
[com.mongodb.DBTCPConnector$1@6c747b55]) and a value of type
[com.mongodb.DBTCPConnector.MyPort] (value
[com.mongodb.DBTCPConnector$MyPort@534d4113]) 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. (.. more or less the same)

Hope for the best,

Gert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maruthi Shanmugam  
View profile  
 More options Oct 5 2012, 4:37 am
From: Maruthi Shanmugam <maruti.n...@gmail.com>
Date: Fri, 5 Oct 2012 01:37:19 -0700 (PDT)
Local: Fri, Oct 5 2012 4:37 am
Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

Hi ,
Is there a solution for this issue.. I mean Gert , if you can share your
code snippet for resolution it would be great (w.r.to spring context).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
grtvrt  
View profile  
 More options Oct 8 2012, 3:23 pm
From: grtvrt <gert.vaart...@gmail.com>
Date: Mon, 8 Oct 2012 12:23:53 -0700 (PDT)
Local: Mon, Oct 8 2012 3:23 pm
Subject: Re: [mongodb-user] Mongo application fails to stop thread MongoCleaner with redeploy or restart Tomcat

Hi,

Sorry, but I never found a solution to this problem. I reported this to
jira.mongodb.org and have been waiting patiently... for 3 months now.. I
hope they will fix this one time. In the meantime I have taken the my
application into production and actually never run into problems, because
of this issue. But it's very irritating problem when you're developing, the
frequent restarts of the Tomcat server causes rapidly a OutOfMemory:Permgen
space error

Gert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »