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 369B89774 for ; Thu, 22 Dec 2011 07:11:38 +0000 (UTC) Received: (qmail 15992 invoked by uid 500); 22 Dec 2011 07:11:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15273 invoked by uid 500); 22 Dec 2011 07:11:33 -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 15254 invoked by uid 99); 22 Dec 2011 07:11:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 07:11:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of icicimov@gmail.com designates 209.85.161.173 as permitted sender) Received: from [209.85.161.173] (HELO mail-gx0-f173.google.com) (209.85.161.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 07:11:27 +0000 Received: by ggnk1 with SMTP id k1so7845167ggn.18 for ; Wed, 21 Dec 2011 23:11:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oiABpfTZDiY6bsVBZwLGpMyoNqBa6aiGBW5NFxSKHoo=; b=cIlRU+ZRD+BPjMgcs23COuV0YQq7jvz4GyB3TvUjNYwI8cv+YtY9fv2sxPpTEvAS4h qE5wTGjzjTWcjfKqzaOXI6cJRbl7hEBbsRiA7tJaiwYwWzKCeMh2bl+T7vm0SYRnMs+M ghOH+48kSVAZeELMRibZkgBmJuVEH3HSlgDI4= MIME-Version: 1.0 Received: by 10.50.77.129 with SMTP id s1mr7291304igw.25.1324537866191; Wed, 21 Dec 2011 23:11:06 -0800 (PST) Received: by 10.43.50.135 with HTTP; Wed, 21 Dec 2011 23:11:06 -0800 (PST) Received: by 10.43.50.135 with HTTP; Wed, 21 Dec 2011 23:11:06 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Dec 2011 18:11:06 +1100 Message-ID: Subject: Re: Tomcat AJP Thread Spike and System Hang From: Igor Cicimov To: Tomcat Users List Content-Type: multipart/alternative; boundary=e89a8f3bb08d01830004b4a9017a --e89a8f3bb08d01830004b4a9017a Content-Type: text/plain; charset=ISO-8859-1 What module are you using on apache side mod_proxy or mod_jk? Also you might post the Connector settings from tomcat. Sorry typing from my mobile just think that info might be useful to some one who can help you more. On Dec 22, 2011 10:57 AM, "John Minchuk" wrote: > Quick overview of our setup. Http requests flow from our load balancers, to > squid proxys, to Apaches, to our Tomcat servers. We migrated to this setup > from an Oracle App Server. > > Apache: 2.2.3 > Tomcat: 7.0.11.0 > JVM: 1.6.0_22-b04 > Linux: 2.6.18-194.17.1.el5 > > Our production environment has max threads set at 200, the number of > threads usually hovers around 150. About twice a day, at seemingly > unrelated times we get a sudden spike in the number of ajp threads open. > Eventually this hits our max of 200. At this point Tomcat still seems > responsive, but the number of our httpd processes spikes until Apache locks > ups. At this point we have monitoring software that kills and restarts > Apache. We then manually restart Tomcat. > > Here is a graph of the AJP Threads running. You can see a sudden jump to > 200 threads. The other dips are most likely reloads triggered by our > configuration management software (puppet). > > http://sporkit.com/thread_spike/spike.jpg > > Also interesting to note, these threads (all 200) appear to be in the keep > alive state. > > http://sporkit.com/thread_spike/threads.jpg > > Our access logs don't indicate a high number of visits, or any one > particular page that might cause this issue (that I can see). > > At this point we are stumped. Do we spend our time tracking down memory > leaks? Is there something we could do to at least mitigate the problem > over the holidays? Any input greatly appreciated. > --e89a8f3bb08d01830004b4a9017a--