Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 87971 invoked from network); 27 Oct 2010 23:02:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Oct 2010 23:02:11 -0000 Received: (qmail 96605 invoked by uid 500); 27 Oct 2010 23:02:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96416 invoked by uid 500); 27 Oct 2010 23:02:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 96402 invoked by uid 99); 27 Oct 2010 23:02:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Oct 2010 23:02:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Oct 2010 23:02:01 +0000 Received: by qyl33 with SMTP id 33so4369989qyl.18 for ; Wed, 27 Oct 2010 16:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=LhWp47fhUb4NM4vEtLn2SMa6Ax5xkGVolkEnImovN74=; b=fPJCXTiap2B4z3c+e4QRgdSJexCzh5AdBceRhitkO3Wu91IbVwyYZHIDMgwGQJ8tap Svcq9EAi6WzYe9m6z1SuuDxJRcG7XgqmLmlk4fZh256dYjEqC01wcz4KKdFdziUXV16Y qM9hmDybHNQnynpeNxlmJCyJOm53CkkvJ1Grg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=OIg71cdsqLR/opbrevn0TUO6W19to8Jmu6HQJpKZdZS2qkSqfK4EQN3XXjPuknscXl XsGNZTLVZju3pv+J+Bi61V8WpWF9vy4OWq0WF4gbksHfDuL626MvqWWkvJsRFHuP7Rgp /izlxg+hjklEGm9EZZY2gFmgXJqwuHNd12b8E= MIME-Version: 1.0 Received: by 10.229.82.85 with SMTP id a21mr704532qcl.71.1288220500244; Wed, 27 Oct 2010 16:01:40 -0700 (PDT) Received: by 10.220.177.7 with HTTP; Wed, 27 Oct 2010 16:01:40 -0700 (PDT) In-Reply-To: References: <99C8B2929B39C24493377AC7A121E21F99F84655D0@USEA-EXCH8.na.uis.unisys.com> <99C8B2929B39C24493377AC7A121E21F99F84656E2@USEA-EXCH8.na.uis.unisys.com> Date: Thu, 28 Oct 2010 03:01:40 +0400 Message-ID: Subject: Re: How to start a daemon without getting the warning? From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2010/10/28 Leon Rosenberg : > Hello Konstantin, > > On Wed, Oct 27, 2010 at 11:53 PM, Konstantin Kolinko > wrote: >> 2010/10/28 Leon Rosenberg : >>> >>> Well, that would just move the problem from stopping Timer to calling >>> shutdown on =A0Executor, wouldn't it? >>> >> >> The problem is with the Thread.getContextClassLoader() for your >> thread. =A0It contains a reference to the webapp classloader, and thus >> does not allow to GC it. > > But I can't detect any obvious Thread.getContextClassLoader() calls in > the code below: > > public class BuiltInMemoryPoolProducer implements IStatsProducer{ >(skipped the code, have not read it) > If you mean setContextClassLoader(..), that happens in java.lang.Thread constructor, or more specifically in some private helper method called there (Thread.init()). The Thread is created by the Timer. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org