Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 11732 invoked from network); 24 Aug 2010 09:21:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 09:21:04 -0000 Received: (qmail 69234 invoked by uid 500); 24 Aug 2010 09:21:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 68904 invoked by uid 500); 24 Aug 2010 09:20:56 -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 67930 invoked by uid 99); 24 Aug 2010 09:20:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 09:20:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.72.192.248] (HELO fmmailgate07.web.de) (217.72.192.248) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 09:20:47 +0000 Received: from mwmweb061 ( [172.20.18.75]) by fmmailgate07.web.de (Postfix) with ESMTP id 3D88F3F8C41 for ; Tue, 24 Aug 2010 11:20:26 +0200 (CEST) Received: from [217.72.201.194] by mwmweb061 with HTTP; Tue Aug 24 11:20:26 CEST 2010 Date: Tue, 24 Aug 2010 11:20:26 +0200 (CEST) From: pue85@web.de To: users@tomcat.apache.org Message-ID: <1483645880.833663.1282641626245.JavaMail.fmail@mwmweb061> Subject: Own Logging Handler not closing correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: normal Sensitivity: Normal X-Provags-ID: V01U2FsdGVkX1/KyWeoCRj/71b4PAFxvOoMogFkNau7YTajuRObwr1mEYAbRD1fu7t5 uhxPxd72qnW56H3TqG1SdOYRlGT2S6do6fDVVIBnxEM= X-UI-ATTACHMENT-ID-POSTFIX: aa859a0e-6555-45aa-a854-1a3e761ee632 Tomcat: 6.0.29 OS: Mac OS Java: 1.5 I wrote an own java.util.logging.Handler to get the logs over the network. = The handler is configured via "myWebapp/WEB-INF/classes/logging.properties"= and is working very well. The handler uses some threads to do his job. I u= sed the close()-Method to interrupt them. But when shutting tomcat down or = doing an undeploy I always get messages like this: ------- 23.08.2010 23:43:14 org.apache.catalina.loader.WebappClassLoader clearRefer= encesThreadsSEVERE: The web application [/testWebapp] appears to have start= ed a thread named [Thread-2] but has failed to stop it. This is very likely= to create a memory leak. 23.08.2010 23:43:14 org.apache.catalina.loader.WebappClassLoader clearRefer= encesThreadsSEVERE: The web application [/testWebapp] appears to have start= ed a thread named [Thread-2] but has failed to stop it. This is very likely= to create a memory leak. ------- Theses threads were started by the handler and can not be stopped by tomcat= . Interestingly the cose()-Methode of my handler - where the handler would = kill these threads - gets called after theses messages... I don't really know how to understand these messages? Why are theses messag= es produced before calling the close() Method of the handler? Thanks a lot! ___________________________________________________________ WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 f=C3=BCr=20 nur 19,99 =C2=BF/mtl.!* http://web.de/DSL-Doppel-Flatrate/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org