This is a long standing issue in solr, that has some suggested fixes (see jira comments), but no one has been seriously afected by it enough for anyone to invest time in trying to improve it...
https://issues.apache.org/jira/browse/SOLR-2357 In general, the fact that Solr is moving away from being a webapp, and towards being a stand alone java application, makes it even less likeley that this will ever really affect anyone. : Date: Thu, 3 Jul 2014 07:37:03 +0530 : From: Aman Tandon <amantandon...@gmail.com> : Reply-To: solr-user@lucene.apache.org : To: solr-user@lucene.apache.org : Subject: RE: Memory Leaks in solr 4.8.1 : : We reload at interval of 6/7 days and restart may be in 15/18 days if the : response becomes too slow : On Jul 2, 2014 7:09 PM, "Markus Jelsma" <markus.jel...@openindex.io> wrote: : : > Hi, you can safely ignore this, it is shutting down anyway. Just don't : > reload the app a lot of times without actually restarting Tomcat. : > : > -----Original message----- : > > From:Aman Tandon <amantandon...@gmail.com> : > > Sent: Wednesday 2nd July 2014 7:22 : > > To: solr-user@lucene.apache.org : > > Subject: Memory Leaks in solr 4.8.1 : > > : > > Hi, : > > : > > When i am shutting down the solr i am gettng the Memory Leaks error in : > logs. : > > : > > Jul 02, 2014 10:49:10 AM org.apache.catalina.loader.WebappClassLoader : > > > checkThreadLocalMapForLeaks : > > > SEVERE: The web application [/solr] created a ThreadLocal with key of : > type : > > > [org.apache.solr.schema.DateField.ThreadLocalDateFormat] (value : > > > [org.apache.solr.schema.DateField$ThreadLocalDateFormat@1d987b2]) and : > a : > > > value of type : > [org.apache.solr.schema.DateField.ISO8601CanonicalDateFormat] : > > > (value : > [org.apache.solr.schema.DateField$ISO8601CanonicalDateFormat@6b2ed43a]) : > > > 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. : > > > : > > : > > Please check. : > > With Regards : > > Aman Tandon : > > : > : -Hoss http://www.lucidworks.com/