Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 60633 invoked from network); 9 Nov 2010 16:35:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 16:35:05 -0000 Received: (qmail 74795 invoked by uid 500); 9 Nov 2010 16:35:36 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74762 invoked by uid 500); 9 Nov 2010 16:35:36 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 74755 invoked by uid 99); 9 Nov 2010 16:35:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 16:35:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 16:35:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA9GZCp6019444 for ; Tue, 9 Nov 2010 16:35:12 GMT Message-ID: <10186569.104131289320512542.JavaMail.jira@thor> Date: Tue, 9 Nov 2010 11:35:12 -0500 (EST) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4895) Thread local TableDescriptor#referencedColumnMap is not set to null when connection closes. In-Reply-To: <32107539.104061289320271451.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930185#action_12930185 ] Dag H. Wanvik commented on DERBY-4895: -------------------------------------- Talked to Knut about this, we may possibly be able to move this map into lcc and avoid the thread local altogether. > Thread local TableDescriptor#referencedColumnMap is not set to null when connection closes. > ------------------------------------------------------------------------------------------- > > Key: DERBY-4895 > URL: https://issues.apache.org/jira/browse/DERBY-4895 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1 > Reporter: Dag H. Wanvik > Priority: Minor > > > This has been seen to cause error messages in TomCat, cf. this quote from a mail on derby-user: > > > > http://mail-archives.apache.org/mod_mbox/db-derby-user/201011.mbox/%3C7800E37B639BC345BC2AB40980B7C529180FB525@MERCMBX03R.na.SAS.com%3E > > > > SEVERE: The web application [/MyApp] created a ThreadLocal with key of type [org.apache.derby.iapi.sq\ > > l.dictionary.TableDescriptor$1] (value [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@d133a3])\ > > and a value of type [java.util.WeakHashMap] (value [{={1, 2, 3, 4}, =null, =null}]) but failed to remo\ > > ve it when the web application was stopped. This is very likely to create a memory leak. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.