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 911991070A for ; Tue, 24 Sep 2013 06:09:24 +0000 (UTC) Received: (qmail 43268 invoked by uid 500); 24 Sep 2013 06:09:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42377 invoked by uid 500); 24 Sep 2013 06:09:15 -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 42366 invoked by uid 99); 24 Sep 2013 06:09:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 06:09:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 06:09:07 +0000 Received: from [192.168.245.201] (montserrat.wissensbank.com [212.85.37.175]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id 0CB363C037A for ; Tue, 24 Sep 2013 08:09:10 +0200 (CEST) Message-ID: <52412C67.50102@ice-sa.com> Date: Tue, 24 Sep 2013 08:08:39 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: MaxClients and maxThreads References: <523FE728.7010704@ice-sa.com> <5240371A.200@christopherschultz.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org mohan.radhakrishnan@polarisFT.com wrote: > Yes. That is probably the capacity planning part that involves think time > analysis and concurrency. > > What Were They Thinking: > Modeling Think Times for Performance Testing > Tom Wilson > > from Computer Measurement Group is what I plan to refer to. But don't know > yet how to mine this from awstats. > > The Redhat link describes it like this > > MaxClients( 300 ) / ThreadsPerChild( 25 ) = Processes( 12 ) > mod_jk default connection pool > Each worker has a connection pool and by default the connection pool size > is equal to ThreadsPerChild( 25 ) > In the default case each worker has 25 connections multiplexed over 12 > processes equaling 300. Two workers will have 300 x 2 =600 > connections to Jboss. > > But I don't understand how one core with 2 hardware threads can support > 200 threads. I don't get that calculation. And you are right in not understanding it, because there is no such calculation. 200 threads doing what ? printing "Hello World" or calculating the GDP of China ? The problem is that when I draw > a throughput graph using think time analysis and concurrent connections > estimate I have to use 800 threads for a 4-core system if we have only > Apache there. > Why do you not just forget about the cores. They are not really relevant here. For the last 30 years, computers have been doing time-sharing between multiple processes. That means that the same CPU can handle multiple processes running "at the same time". Having more than one core just means that the same CPU can, at certain times, be processing more than one task at the same time. For all practical intents and purposes, it is basically the same as having one core that is twice (or 3, 4 times) as fast. What is important here is how many client requests your chosen architecture can process in any chosen amount of time. And that depends for 90% on your application(s). So take the default values for everything (because at least they are not severely unbalanced), and *measure* how your system is doing under load. If you are statisfied, leave it at that and do the same on another system. If you are not satisfied, /then/ is the time to start looking deeper. But then you'll be doing it with some basic numbers to compare against, and not in the dark like now. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org