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 26AD0DE9A for ; Fri, 13 Jul 2012 08:35:25 +0000 (UTC) Received: (qmail 84145 invoked by uid 500); 13 Jul 2012 08:35:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 83863 invoked by uid 500); 13 Jul 2012 08:35:20 -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 83838 invoked by uid 99); 13 Jul 2012 08:35:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 08:35:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shutyaev@gmail.com designates 209.85.161.173 as permitted sender) Received: from [209.85.161.173] (HELO mail-gg0-f173.google.com) (209.85.161.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 08:35:13 +0000 Received: by mail-gg0-f173.google.com with SMTP id p1so4092999ggn.18 for ; Fri, 13 Jul 2012 01:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3gM14hmaPF7HyYiWItLg2xWOhssGDCGB7bjj3qYCM8A=; b=mjPMhMbV3RS1G9kewm8lrGJhdHu9s+4ETcSyB3ZnrZoufx7BHXeJjzcLlJba7+96lh ENMaq/9UDaeRfvDDbz+4gDggVP8EKZuVnmhcilfcP+PvEN9RxyPJRkqCAUVWt/UoSO5l nPzndiLdzfk11yPCXw2UIKxR/oGD5U2AI0ZShQtV/L0DOZlfdNrlb564/sxGAnFh3jYI mHic69r8Y7uIQV1MPvCvK8MynQlci3l6zo4xPboh+zV1cnRweQWg9qjtS0nR92IBrE0a eb9RBkgWBNYR44rwGtU54AlsPQFk9R1UFvEUFGiLYUislf5IEAyYzIRRMYrXAK3zkBPS Z3Ew== MIME-Version: 1.0 Received: by 10.50.95.231 with SMTP id dn7mr191542igb.18.1342168492934; Fri, 13 Jul 2012 01:34:52 -0700 (PDT) Received: by 10.231.196.22 with HTTP; Fri, 13 Jul 2012 01:34:52 -0700 (PDT) Date: Fri, 13 Jul 2012 12:34:52 +0400 Message-ID: Subject: a lot of threads waiting for a ThreadPool monitor From: Alexander Shutyaev To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=e89a8f2354bf4004ac04c4b1f420 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f2354bf4004ac04c4b1f420 Content-Type: text/plain; charset=UTF-8 Hi all! I've encountered a problem with an embedded tomcat. The thread dump shows a lot of threads (106 out of 722 total) are blocked waiting for a monitor org.apache.tomcat.util.threads.ThreadPool. The locking thread is itself blocked on a monitor (0x00007f33e30ef000) but I can't find this monitor in the dump which is a little bit confusing. I thought of a deadlock, but there are no deadlocks detected in the dump. My version, config and thread stacktraces are below. Can someone help identifying the source of the problem? Thanks in advance. *Tomcat version* 5.5.23 *server.xml* *Locking thread stacktrace* "http-9090-Processor755" daemon prio=10 tid=0x00007f33fde43000 nid=0x5ca8 waiting for monitor entry [0x00007f33e30ef000] java.lang.Thread.State: BLOCKED (on object monitor) at org.apache.tomcat.util.threads.ThreadPool. returnController(ThreadPool.java:440) - locked <0x0000000685e71038> (a org.apache.tomcat.util. threads.ThreadPool) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:712) at java.lang.Thread.run(Thread.java:679) *Example of a waiting thread stacktrace* "http-9090-Processor504" daemon prio=10 tid=0x000000000432b800 nid=0x5329 waiting for monitor entry [0x00007f3400218000] java.lang.Thread.State: BLOCKED (on object monitor) at org.apache.tomcat.util.threads.ThreadPool. returnController(ThreadPool.java:440) - waiting to lock <0x0000000685e71038> (a org.apache.tomcat.util. threads.ThreadPool) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:712) at java.lang.Thread.run(Thread.java:679) --e89a8f2354bf4004ac04c4b1f420--