Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 40735 invoked from network); 28 May 2008 12:53:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 May 2008 12:53:09 -0000 Received: (qmail 28060 invoked by uid 500); 28 May 2008 12:53:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 28039 invoked by uid 500); 28 May 2008 12:53:09 -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 28028 invoked by uid 99); 28 May 2008 12:53:09 -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 05:53:09 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 12:52:15 +0000 Received: by wa-out-1112.google.com with SMTP id m33so3337910wag.9 for ; Wed, 28 May 2008 05:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=YKz5MNYnJV+lAvaTfJ1s6lkMet6L7aPQ+4J1JivHs+E=; b=ZM69745SBzFYISgdb79gRjBPTzyKF9ZLYga4NqslWbAMSQuBcVh89bYyQmojOaMUw9bINEgIs0ytfmcwJyr3tsAfgO/8ueEiLro3s4IoKTrs3QB7dH8CMdG6I55QDG/ZUrbEzT9RYQPjahGzwqI0R+C51EtaYVkgTSxoZVF297g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=IaiVFOdAbB8SG986qJk/gVS7TtVHEQlf82dKMlJKoHlSxHrhvfy3Ul/N0tqRY/YCW03BDlQP1x7Ioz5DuyfU5PNVfNHlJL086L14gMhaFxmp+tUBnhtC1rSIwKuPi74Mv+qRuux/F47xAs62LS74/grP8veGwJJknct9gTFtc6k= Received: by 10.115.18.1 with SMTP id v1mr2488310wai.81.1211979155971; Wed, 28 May 2008 05:52:35 -0700 (PDT) Received: by 10.114.190.14 with HTTP; Wed, 28 May 2008 05:52:35 -0700 (PDT) Message-ID: <90a8d1c00805280552i79441045r68274113dc48d294@mail.gmail.com> Date: Wed, 28 May 2008 14:52:35 +0200 From: "Stefan Guggisberg" Reply-To: stefan.guggisberg@day.com Sender: stefan.guggisberg@gmail.com To: users@jackrabbit.apache.org Subject: Re: Shutdown hooks and classloader leak In-Reply-To: <17509737.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17509737.post@talk.nabble.com> X-Google-Sender-Auth: 52e4c1bb9c3846c8 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, May 28, 2008 at 12:33 PM, Roman Puchkovskiy wrote: > > 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? is this a pure theoretical issue or have you actually experienced "out of perm space" errors? i agree with your analysis that the addShutdownHook call in TransientFileFactory is a potential classloader related memory leak. however, so far i haven't heard of any "out of perm space" reports. OTOH, if this is a real world issue we should probably address it. BTW: TransientFileFactory is part of jcr-commons which could/should be deployed as a shared library. cheers stefan > > 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. > >