Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3748A2C4A for ; Mon, 25 Apr 2011 20:45:43 +0000 (UTC) Received: (qmail 61651 invoked by uid 500); 25 Apr 2011 20:45:41 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 61605 invoked by uid 500); 25 Apr 2011 20:45:41 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 61593 invoked by uid 99); 25 Apr 2011 20:45:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 20:45:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 20:45:40 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4DBA1B3C12 for ; Mon, 25 Apr 2011 20:45:03 +0000 (UTC) Date: Mon, 25 Apr 2011 20:45:03 +0000 (UTC) From: "Hoss Man (JIRA)" To: dev@lucene.apache.org Message-ID: <1963933295.753.1303764303315.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <142819096.8205.1297356422192.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2357) Thread Local memory leaks on restart MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024952#comment-13024952 ] Hoss Man commented on SOLR-2357: -------------------------------- Generalized (core) shutdown hooks seem like they might be a decent idea ... but that introduces more life cycle complications (and i feel like we already have plenty) the simplest solution seems like it would probably be to just have something like CoreContainer or SolrCore manage a single ThreadLocal object (probably a Map) that *any* component in solr could attempt to us to stash persistent data in, and then the initial creator would just be responsible for cleaning up that object. > Thread Local memory leaks on restart > ------------------------------------ > > Key: SOLR-2357 > URL: https://issues.apache.org/jira/browse/SOLR-2357 > Project: Solr > Issue Type: Bug > Components: contrib - Solr Cell (Tika extraction), search > Affects Versions: 1.4.1 > Environment: Windows Server 2008, Apache Tomcat 7.0.8, Java 1.6.23 > Reporter: Gus Heck > Labels: memory_leak, threadlocal > > Restarting solr (via a changed to a watched resource or via manager app for example) after submitting documents with Solr-Cell, gives the following message (many many times), and causes Tomcat to shutdown completely. > SEVERE: The web application [/solr] created a ThreadLocal with key of type [org. > apache.solr.common.util.DateUtil.ThreadLocalDateFormat] (value [org.apache.solr. > common.util.DateUtil$ThreadLocalDateFormat@dc30dfa]) and a value of type [java.t > ext.SimpleDateFormat] (value [java.text.SimpleDateFormat@5af7aed5]) but failed t > o remove it when the web application was stopped. Threads are going to be renewe > d over time to try and avoid a probable memory leak. > Feb 10, 2011 7:17:53 AM org.apache.catalina.loader.WebappClassLoader checkThread > LocalMapForLeaks -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org