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 A111BDA2D for ; Tue, 23 Oct 2012 20:38:49 +0000 (UTC) Received: (qmail 8078 invoked by uid 500); 23 Oct 2012 20:38:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 7893 invoked by uid 500); 23 Oct 2012 20:38:46 -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 7884 invoked by uid 99); 23 Oct 2012 20:38:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 20:38:46 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.48] (HELO qmta05.westchester.pa.mail.comcast.net) (76.96.62.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 20:38:39 +0000 Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11]) by qmta05.westchester.pa.mail.comcast.net with comcast id EdoC1k00A0EZKEL55keNhi; Tue, 23 Oct 2012 20:38:22 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta01.westchester.pa.mail.comcast.net with comcast id Ekec1k00G38FjT13MkeerD; Tue, 23 Oct 2012 20:38:39 +0000 Message-ID: <50870033.1030700@christopherschultz.net> Date: Tue, 23 Oct 2012 16:38:11 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Max Threads - Worker Threads clarification References: <5086E6F0.3030903@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Charles, On 10/23/12 3:01 PM, Charles Richard wrote: > I am doing load testing. I'm trying to ensure that our production > site can handle as much traffic as it possibly can and I'm trying > to make sure I refine my performance tuning skills on a test > environment. Here are some more specifics: > > Mod_jk is 1.2.31 That's a few versions behind. You might want to upgrade if you have the chance. > Settings in workers.properties: > > worker.worker1.type=ajp13 worker.worker1.host=localhost > worker.worker1.port=8009 > worker.worker1.connection_pool_timeout=180 Do you have a parallel timeout in your on the Java side? > worker.worker1.lbfactor=1 If you aren't load-balancing, then this obviously doesn't have any effect. Also note that all of your settings are the defaults except for the connection_pool_timeout. If you end up setting up load-balancing, you might want to look into using a "template" worker. > I'm not sure how many threads would be good to handle how many > connections :) That depends upon response time under load. If you want to be able to handle 100 simultaneous requests, you need to make sure that you have enough threads to handle that, and that the hardware can get the work done that fast. > I'm just trying to understand more of the process so i can start > fine-tuning where I can. Right now, I'm trying to understand why > Tomcat could not respond anymore if threads are still waiting but > maybe with the server being cpu bound as it is, it's just taking a > long long time and everything is as could be "expected". That's the first time I heard you say "Tomcat could not response anymore". Is that actually happening? If you don't have the same connection pool timeout on both ends of the AJP connection, then you'll tie-up all your Tomcat request processing threads waiting on connections that will never receive any data, and you'll end up deadlocked. If you are load-testing, you might never notice since your AJP connections should all be getting exercise fairly regularly, and the 180-second timeout should never happen. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCHADMACgkQ9CaO5/Lv0PDo8wCeOKV2nnmNv3Vyz3rIECVb90dM q0IAnRLBpXFJF8WcDEc3YaKCALHmbjpv =sbpD -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org