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

improve threaklocal to avoid a probable memory leak #2308

Closed
quaff opened this issue Oct 8, 2012 · 6 comments
Closed

improve threaklocal to avoid a probable memory leak #2308

quaff opened this issue Oct 8, 2012 · 6 comments
Labels

Comments

@quaff
Copy link

quaff commented Oct 8, 2012

when I run elasticsearch in tomcat7 using embedded mode,tomcat print lots of warning log
please clear threadlocal as possible as eleasticsearch can do

十月 08, 2012 9:58:59 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$1](value [org.elasticsearch.index.mapper.core.NumberFieldMapper$1@61b6dd]) and a value of type [org.apache.lucene.analysis.NumericTokenStream](value [%28numeric,valSize=64,precisionStep=4%29]) 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.
十月 08, 2012 9:58:59 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.DocumentMapper$1](value [org.elasticsearch.index.mapper.DocumentMapper$1@a15735]) and a value of type [org.elasticsearch.index.mapper.ParseContext](value [org.elasticsearch.index.mapper.ParseContext@df48c4]) 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.
十月 08, 2012 9:58:59 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$1](value [org.elasticsearch.index.mapper.core.NumberFieldMapper$1@1ecbf74]) and a value of type [org.apache.lucene.analysis.NumericTokenStream](value [%28numeric,valSize=64,precisionStep=4%29]) 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.
十月 08, 2012 9:58:59 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$1](value [org.elasticsearch.index.mapper.core.NumberFieldMapper$1@1bb2525]) and a value of type [org.apache.lucene.analysis.NumericTokenStream](value [%28numeric,valSize=64,precisionStep=4%29]) 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.
十月 08, 2012 9:58:59 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$1](value [org.elasticsearch.index.mapper.core.NumberFieldMapper$1@d89df]) and a value of type [org.apache.lucene.analysis.NumericTokenStream](value [%28numeric,valSize=64,precisionStep=4%29]) 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.

@ghost ghost assigned spinscale Oct 30, 2013
@spinscale
Copy link
Contributor

do you still see this with elasticsearch 0.90? If so, do you also see this leak with the above classes?

@quaff
Copy link
Author

quaff commented Oct 31, 2013

org.elasticsearch.index.mapper.core.StringFieldMapper$1
org.elasticsearch.index.mapper.core.StringFieldMapper.StringTokenStream

org.elasticsearch.index.mapper.internal.UidFieldMapper$1
org.elasticsearch.common.lucene.uid.UidField

org.elasticsearch.index.mapper.core.NumberFieldMapper$2
org.apache.lucene.analysis.NumericTokenStream

org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom$1
org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom

org.elasticsearch.common.util.concurrent.jsr166e.Striped64.ThreadHashCode
org.elasticsearch.common.util.concurrent.jsr166e.Striped64.HashCode

@spinscale spinscale removed their assignment Apr 25, 2014
@clintongormley
Copy link

Is this related to #283?

@quaff
Copy link
Author

quaff commented Jul 10, 2014

yes

2014-07-09 1:13 GMT+08:00 Clinton Gormley notifications@github.com:

Is this related to #283
#283?


Reply to this email directly or view it on GitHub
#2308 (comment)
.

@clintongormley
Copy link

Closing in favour of #283

@sujoykr1
Copy link

Threads are going to be renewed over time to try and avoid a probable memory leak
Please help to resolve this..

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

No branches or pull requests

4 participants