Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 5303 invoked from network); 7 May 2010 18:08:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 May 2010 18:08:29 -0000 Received: (qmail 37020 invoked by uid 500); 7 May 2010 18:08:28 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 36957 invoked by uid 500); 7 May 2010 18:08:28 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 36948 invoked by uid 99); 7 May 2010 18:08:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 18:08:28 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 18:08:22 +0000 Received: (qmail 3714 invoked from network); 7 May 2010 13:08:01 -0500 Received: from 38-171-19-72.skybeam.com (HELO ?192.168.3.122?) (72.19.171.38) by halosg.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 7 May 2010 13:08:01 -0500 Message-ID: <4BE45728.5020106@hanik.com> Date: Fri, 07 May 2010 12:08:40 -0600 From: Filip Hanik - Dev Lists User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Lightning/1.0b2pre Thunderbird/3.0.4 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: clearReferencesThreads, Poller SunPKCS11-Solaris and strange context class loader References: <4BE30FAA.1040607@kippdata.de> <4BE39ED8.6050001@kippdata.de> <4BE4027B.5050005@kippdata.de> <4BE41DAB.8000602@kippdata.de> In-Reply-To: <4BE41DAB.8000602@kippdata.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit On 05/07/2010 08:03 AM, Rainer Jung wrote: > On 07.05.2010 14:23, Konstantin Kolinko wrote: >> 2010/5/7 Rainer Jung: >>> On 07.05.2010 11:00, Konstantin Kolinko wrote: >>>> >>>> 2010/5/7 Rainer Jung: >>>>> >>>>> I'm wondering why the PCKS Token >>>>> Poller thread was captured by the leak prevention. Since we know the >>>>> code, >>>>> it was because its context class loader was equal to the >>>>> WebappClassLoader >>>>> of /manager. That's what I don't understand. See my original post. >>>>> >>>> >>>> TCCL is inherited from the parent thread. It means that that thread >>>> was started either during request processing, or during webapplication >>>> startup. >>> >>> But unfortunately that doesn't provide consistent results. >>> >>> If I sart Tomcat without any webapp (but with ROOT context) the >>> thread is >>> started too. The heap dump shows the system cl as the tccl, but during >>> restart or shutdown the leak prevention retrieves the tccl and finds >>> it s >>> equal to the WebappClassLoader of the manager. >>> >>> I'm confused. >>> >>>> BTW, 4th result in >>>> http://www.google.com/search?q=SunPKCS11+TokenPoller >>>> gives source code for that class. >>> >>> I'll see, but I guess the point is more about who starts it when and >>> why, >>> less about what it does. >>> >> >> What is this all about, I means this PKCS11 tokens? >> Is it something that is used in your configuration? > > No, not at all. There's not HTTPS connector, no keystore no nothing. > The PKCS11 provider comes with the JDK but I'm not aware of anything > that uses it. Default Tomcat configuration plus log4j. > > It's there after JDK start with some version of the JDK. It's not > there if I only start a plain Java test doing only a sleep using the > same JDK. well, if the app uses java.net.URL to a https, then this would make sense that the thread got started with the webapp's class loader > >> I mean, what are those "tokens" that it works with? (for a newbie) >> Do you use JAAS? > > Not that I'm aware of. > >> From the code, e.g. >> SunPKCS11#uninitToken() calls >> 1) destroyPoller() >> 2) createPoller() >> >> which restarts the thread. So the one at shutdown time might be >> different from the one that you see when Tomcat starts. > > Hmmm. Will dig deeper over the weekend. > > Regards, > > Rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org