Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDCCB10C39 for ; Sun, 16 Feb 2014 22:49:16 +0000 (UTC) Received: (qmail 51471 invoked by uid 500); 16 Feb 2014 22:49:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 51351 invoked by uid 500); 16 Feb 2014 22:49:12 -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 51342 invoked by uid 99); 16 Feb 2014 22:49:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 22:49:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-wg0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 22:49:07 +0000 Received: by mail-wg0-f42.google.com with SMTP id k14so1653530wgh.1 for ; Sun, 16 Feb 2014 14:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6d/ipq6VH3Iv/e/mfPJUpdQCqDQWM9rDCJy01tHczUg=; b=jBAS1zbKHzk7TgyfhowrzgXaBaHtl9NAdWxowVPEiE25RFsTbFLQOf9zAVngwURhr3 UJPL66rLjvQ2eaKkfCIQ5S4I+KtC6hagCemfWkhCe6asG9dbioVzCSaedRJPRbbCm47U UeyiFiJYsD5SX00ty/9fjzjsxLMdPf9YsVyf7A/fR+gJMihlhP0/PIrdx+YdiySPH1F3 9O+5qLS9cXAgaWfduWMWyX+NWmC9agLunXut6zVjuGlfk/Vqz9Jg8+eYG4zLxYcT/xri T9boA/ECb2ooCT2OLd9wYXRUPlAeGX5mXw9B4OhLQw9OARzISfTKtOthlbrrcs97D+QB 2yaA== MIME-Version: 1.0 X-Received: by 10.194.2.168 with SMTP id 8mr14727650wjv.8.1392590926200; Sun, 16 Feb 2014 14:48:46 -0800 (PST) Received: by 10.216.70.145 with HTTP; Sun, 16 Feb 2014 14:48:46 -0800 (PST) In-Reply-To: References: <99C8B2929B39C24493377AC7A121E21FC5DB802776@USEA-EXCH8.na.uis.unisys.com> Date: Mon, 17 Feb 2014 02:48:46 +0400 Message-ID: Subject: Re: Unable to shutdown tomcat From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2014-02-17 2:16 GMT+04:00 Tim Leung : > Can someone please help me? > > > On Sun, Feb 16, 2014 at 12:05 PM, Tim Leung wrote: >> >> "main" prio=5 tid=7fe82c001800 nid=0x10448e000 runnable [10448b000] >> java.lang.Thread.State: RUNNABLE >> at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotList(Native Method) >> at sun.security.pkcs11.SunPKCS11.(SunPKCS11.java:314) >> at sun.security.pkcs11.SunPKCS11.(SunPKCS11.java:86) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at sun.security.jca.ProviderConfig$4.run(ProviderConfig.java:262) >> at java.security.AccessController.doPrivileged(Native Method) >> at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:244) >> at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:224) >> - locked <7f42b0110> (a sun.misc.Launcher$AppClassLoader) >> at sun.security.jca.ProviderList.loadAll(ProviderList.java:264) >> at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:281) >> at sun.security.jca.Providers.getFullProviderList(Providers.java:129) >> - locked <7fb0bfef0> (a java.lang.Class for sun.security.jca.Providers) >> at java.security.Security.getProviders(Security.java:421) >> at >> org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:407) >> at >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >> at >> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >> at >> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) >> - locked <7f42b6328> (a org.apache.catalina.core.StandardServer) >> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99) >> - locked <7f42b6328> (a org.apache.catalina.core.StandardServer) >> at org.apache.catalina.startup.Catalina.load(Catalina.java:639) >> at org.apache.catalina.startup.Catalina.load(Catalina.java:664) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) >> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) >> Wait awhile, take several thread dumps and look whether there is any change in state of the "main" thread. If "main" thread has reached "StandardServer.await()" then you can shutdown Tomcat gracefully. If it has not, graceful shutdown is not possible, as it does not yet listen on the shutdown port. If there is no change, then at this point (in JreMemoryLeakPreventionListener) nothing has really started yet and there is no need in "grace" shutdown. Cannot say anything about PKCS11. Does it always hang there? (It is possible to skip that step in JreMemoryLeakPreventionListener by setting tokenPollerProtection="false", but docs say that the same initialization will happen later, when generating session ids. http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html ) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org