Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 80422 invoked from network); 8 Jan 2011 16:37:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2011 16:37:18 -0000 Received: (qmail 83150 invoked by uid 500); 8 Jan 2011 16:37:15 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 82742 invoked by uid 500); 8 Jan 2011 16:37: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 82733 invoked by uid 99); 8 Jan 2011 16:37:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jan 2011 16:37:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kobi@comns.co.il designates 212.179.76.227 as permitted sender) Received: from [212.179.76.227] (HELO mx1.comns.co.il) (212.179.76.227) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jan 2011 16:37:04 +0000 Received: from [192.168.2.154] (bzq-84-111-197-131.red.bezeqint.net [84.111.197.131]) by mx1.comns.co.il (Postfix) with ESMTP id EC13230069 for ; Sat, 8 Jan 2011 18:36:39 +0200 (IST) Subject: Re: Tomcat 6 busy threads issue From: Kobi Biton To: Tomcat Users List In-Reply-To: <4D25FA96.3050602@christopherschultz.net> References: <1294331219.2694.37.camel@kbiton-lap-ub> <4D25F66E.4070304@christopherschultz.net> <1294334067.2694.45.camel@kbiton-lap-ub> <4D25FA96.3050602@christopherschultz.net> Content-Type: text/plain; charset="UTF-8" Date: Sat, 08 Jan 2011 18:36:41 +0200 Message-ID: <1294504601.23427.2.camel@kbiton-lap-ub> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Christopher, On Thu, 2011-01-06 at 12:23 -0500, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kobi, > > On 1/6/2011 12:14 PM, Kobi Biton wrote: > > -Tomcat 6.0.22 > > Great. Any opportunities to upgrade? Your version was never released and > is over a year old. - Yep I agree and I believe that I will upgrade soon. > > > - yes they are load balanced simple Round Robin Linux LVS , (LB > > distributes the requests evenly) > > So, you expect each server to serve 1/N of the incoming requests per > unit time. Any session stickiness? > > > - All the servers (But 1) had the following thread pool confguration > > prior the change: > > > > MaxThreads=1000 , minSpareThread=25,maxSpateThreads=75 > > > > 1 server had: > > > > MaxThreads=300 , minSpareThread=25,maxSpateThreads=75 > > Okay, that will mean that the second server will handle, at most, 300 > simultaneous connections. Do you have any per-backend-server connection > limits set at the load balancer? > > > For some reason the server that had MaxThreads=300 report x2 > > threadCount / threadBusy Via JMX polling , only after changing its > > maxThreads to 1000 the threadCount/threadBusy count was decreased x2 and > > matched all the other servers > > So, let's do an example so I can get my head around it: > > N = 3 > > Server 1: maxThreads=1000, busy=100 > Server 2: maxThreads=1000, busy=100 > Server 3: maxThreads=300, busy=200 > > Is that roughly what you observed? - Yes 100% Right > Was that consistent over a long > period of time? - Yep consistent since tomcat start > Did you observe what kinds of requests were being served > on server 3? If some of them were long-running, you may just be > observing a natural build-up of work on a server that reliably gets 33% > of incoming requests but has some older requests that are still processing. > > > - Indeed busyThreads <= maxThreads > > Good. If that weren't true, something would be terribly wrong :) > > > Just trying to figure out why did the maxThreads was Impacting the > > thread busy/count ... > > I can't imagine why it would, other than putting a cap on the number of > busy threads (because busyThreads <= maxThreads). > > What kind of lb are you using? Linux ipvsadm basically LVS > > - -chris Kobi. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk0l+pYACgkQ9CaO5/Lv0PBuogCgitvm9D01NSi84oO0tVO+itdn > ByMAmwfOVpq59BhVIlUtx/EswxsBm3lJ > =AzZU > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > -- Kobi Biton Com N S Ltd. Mobile: +972 (54) 8017668 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org