Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 64310 invoked from network); 28 May 2008 10:34:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 May 2008 10:34:28 -0000 Received: (qmail 38868 invoked by uid 500); 28 May 2008 10:34:29 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 38847 invoked by uid 500); 28 May 2008 10:34:29 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 38836 invoked by uid 99); 28 May 2008 10:34:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 03:34:29 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 10:33:35 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K1Iyi-0006GY-Ts for users@jackrabbit.apache.org; Wed, 28 May 2008 03:33:56 -0700 Message-ID: <17509737.post@talk.nabble.com> Date: Wed, 28 May 2008 03:33:56 -0700 (PDT) From: Roman Puchkovskiy To: users@jackrabbit.apache.org Subject: Shutdown hooks and classloader leak MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: roman.puchkovskiy@blandware.com X-Virus-Checked: Checked by ClamAV on apache.org Hi. Some classes in Jackrabbit (for instance, TransientFileFactory) always register shutdown hooks. So, if jackrabbit classes were loaded by web-app classloader, they will not be released when web-app is undeployed. Looks like this should lead to classloader leak. Am I missing something? And if this causes leaks, is there way to cancel such hooks when undeploying web-application? Thanks in advance. -- View this message in context: http://www.nabble.com/Shutdown-hooks-and-classloader-leak-tp17509737p17509737.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.