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 C169510B7B for ; Tue, 18 Feb 2014 22:26:17 +0000 (UTC) Received: (qmail 16578 invoked by uid 500); 18 Feb 2014 22:26:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16468 invoked by uid 500); 18 Feb 2014 22:26:13 -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 16458 invoked by uid 99); 18 Feb 2014 22:26:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 22:26:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [76.96.62.80] (HELO qmta08.westchester.pa.mail.comcast.net) (76.96.62.80) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 22:26:06 +0000 Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11]) by qmta08.westchester.pa.mail.comcast.net with comcast id TvUa1n0040EZKEL58yRiyi; Tue, 18 Feb 2014 22:25:42 +0000 Received: from Christophers-MacBook-Pro.local ([68.55.8.89]) by omta01.westchester.pa.mail.comcast.net with comcast id TyRh1n00L1vFKdg3MyRhNu; Tue, 18 Feb 2014 22:25:42 +0000 Message-ID: <5303DDE4.3020802@christopherschultz.net> Date: Tue, 18 Feb 2014 17:25:40 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Unable to shutdown tomcat References: <99C8B2929B39C24493377AC7A121E21FC5DB802776@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392762342; bh=4UF4TW93qTg30QS3gFJeDyBdKyMXD5+04Adpo6lrYH0=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=W4EmAarhyZz7huNzLT5TfOOlHoIHHZf+YUc3OH83p2p+XkOj9u0TGDSGEYrrDt841 ni3f3/o+Y8QkYvlCbSZbu9caMhm5L5Pol9qnqWGNlAakS1FKBZUtK3q7EG823qWuHN 0atxQ5tTRBeg714dLPDp/TRD4FkOdQANKbbQdm8/+5f3CP/GPbRHAmH+HcEIbP+0Wn jfzDBR+YozUmQcyiC6W1t5WMhthPRlN/kX7XXz0yqi3snVDRaWGcv47uf3G2QsXmC5 FsSxVez0DZE8PIxe7gaXfAcLizTXJ0zHZDtsMBf68VFW1Tjo8+Dfm04Kgw8pk5SaX6 ZNSMLOjFBXX0Q== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Tim, (This looks alot like a question posted recently by "Pooja"). On 2/16/14, 3:05 PM, Tim Leung wrote: > I did a kill -3, and see these messages written to catalina.out. > Something definitely doesn't seem right - [snip] > "Thread-5" daemon prio=5 tid=7fe82c1f7000 nid=0x10c4bb000 waiting > for monitor entry [00000000] java.lang.Thread.State: BLOCKED (on > object monitor) This thread might be a problem. You'll want to find out where this gets created. Often, use of the Timer class, etc. can create threads like this. When using anything that requires threads, I always recommend setting a thread name (or thread-name prefix) to help identify why threads have been created. > "AWT-AppKit" daemon prio=5 tid=7fe82f10d000 nid=0x7fff7a5b3960 > runnable [00000000] java.lang.Thread.State: RUNNABLE This thread might be a problem. You'll want to make sure that your AWT thread is launched by Tomcat itself and not by your web application. Check the documentation for JreMemoryLeakProtectionListener, specifically the AWT-related options. (http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#JRE_Memory_Leak_Prevention_Listener_-_org.apache.catalina.core.JreMemoryLeakPreventionListener) > "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) The main thread definitely looks like it's doing something a bit odd. Are you sure you got this thread dump after Tomcat had completely started up? The main thread looks to be more likely the issue (stuck on startup?) but you should look-into those two other threads to make sure they are handled properly, otherwise you risk memory leaks. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTA93iAAoJEBzwKT+lPKRYqmMP/AlgiB7QfXsUDGR7UiB+Gvu8 TcZIz2347ZmM9ILYTygLgWNT5CcSt5mL0zRX89YxNIgKoFGgIMx5qLz3YWkXramk 82aO5hxKgeKjAyyhiy+X2HWgzRsDAlQuQN/OAywziyqOGVvA9pyVKe1wGi5HYiUJ em8KkhlmX+sePIOQtt7EW3Ef3BlGcJExTl7rK2W69FBcC3Gl/DNxO32+qSCd96+3 zu9pT0DaZf64zx/V4n/MkI+pDdkVJdLlcECpvO3hNvjoujNVxRCOGWm9sMbXR284 PQOnP1NBsqmTKbxCO1q5XxIObJwGW/UE2rjLyolb542U2xL0d6BWD0ikJdQObIJp pOBr14MQrQojL5Zndb513GUkIt9d2n7HL+uj+D2JVA9NYh+fskOOAZJyLBv0tjcv hQfXDgg0US7E7fta583pXle/togaH4db8mHCEOKWugD33Isx0fYaXge4oGimzvQ3 X/HwLkBTm1FZV5Rp7NhFQq3RZQbrfPKo3jTI4+ovi/kHwKSaDjt+6vYFxlXdrrih buPBFwFj+UpULGbAL9qQvDdr6lR24yF2d+nhhrqadXZSIw/eDH63EFuVoviX09Y2 mkVQC9kzjpCc3M3KFANR3cuUv8O2S74hP/jJhpK7BC8lQv9KixwT/dyYUrbXxi3y +xA6vgBQgTz9JKI91Afd =J4ZZ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org