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 EDC3DD224 for ; Sun, 4 Nov 2012 18:16:48 +0000 (UTC) Received: (qmail 8296 invoked by uid 500); 4 Nov 2012 18:16:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8144 invoked by uid 500); 4 Nov 2012 18:16:45 -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 8131 invoked by uid 99); 4 Nov 2012 18:16:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 18:16:44 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.217.32] (HELO nm20-vm1.bullet.mail.gq1.yahoo.com) (98.136.217.32) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 18:16:38 +0000 Received: from [98.137.12.174] by nm20.bullet.mail.gq1.yahoo.com with NNFMP; 04 Nov 2012 18:16:17 -0000 Received: from [208.71.42.202] by tm13.bullet.mail.gq1.yahoo.com with NNFMP; 04 Nov 2012 18:16:17 -0000 Received: from [127.0.0.1] by smtp213.mail.gq1.yahoo.com with NNFMP; 04 Nov 2012 18:16:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1352052977; bh=0Lrt7+GYGPp3P4XFetyjdXTMO4X9cA26jCmxiLlh6O8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=EjROnrrvC16Qltdi/qbKJvHOAAG2YqZFAFnMglo4i6OxsAS4oNEwiIit3/lyN4gvPHoTKV4+xP48ca7EcJIc8yTbA0mB4Q3FjMlU7nMXzQwAh/GWJbcGiulf+z/FYuYJWoeCcXuf9iLDhFQWsqSN8WYBZ4LGFKcaLM8tABCAvn4= X-Yahoo-Newman-Id: 495899.94062.bm@smtp213.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: PnIBYYsVM1koenmvCELoNyGtyzdU.txe_GWIMEj_5_.Wayc 1VxTjah4l1QdPEslm.RzHjk2aN5KKeSpZ7uklZkYJEYHqp9kw9wACRg_LkKZ L_fBpzMF.MSeG296CU24.WaDcIC6qDH0PQMK65M7F2amGpOzac03HVSM9gPg 78TwWZB5AAJ6KOjkDUrvo7Ci7AJ4n5ENkoC1nm6S6mpZ9jcM4Ij8CWtPwZsV oPh2MDu_pdlLV_YECQJaZQnOH1ms5F4rh.5rfe36tSCiw5PlBkniZHE9vb4n FqFJTYH.xm7qu3bC8MHH7C7u3Sjsf_vcINk3q2HfNg_J5pCeiABuWaRzZYlX iXeQ6cUnL71FyEjnVbcDQAtzc0ZaRtM3Rc7wI0lw0cu7WG8wvucaUaSPzFad vSReUzOlO6As2if7mfwi4dGFefPye1vJS8nEYvr7TJ7A7eopYqm.Kxd4cszR d0bG1jFzo3MFxMGS.EMqpC5BailD.e_3K X-Yahoo-SMTP: PKuT8k2swBCeFOHzkGy5rTOUTa2hBxlR Received: from [127.0.0.1] (its_toasted@71.133.240.169 with plain) by smtp213.mail.gq1.yahoo.com with SMTP; 04 Nov 2012 10:16:17 -0800 PST Message-ID: <5096B0F0.3010001@yahoo.com> Date: Sun, 04 Nov 2012 10:16:16 -0800 From: Mark Eggers User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Re: Fw: Tomcat 6 query References: <0403FF72-D9CA-4D30-8B96-3620AE43F438@yahoo.co.in> <50937BD2.9060804@yahoo.com> <50940473.9060309@christopherschultz.net> <1351932165.22690.YahooMailNeo@web193106.mail.sg3.yahoo.com> <1BF935ED-5066-443E-A9B2-85DD52D9D158@yahoo.co.in> In-Reply-To: <1BF935ED-5066-443E-A9B2-85DD52D9D158@yahoo.co.in> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Comments in line (warning - this is done before coffee): On 11/3/2012 8:59 PM, vicky wrote: > Thanks christopher. > I am using Probe application for monitoring the Tomcat application , in that > everything is getting displyed fine except the "Min Spare Threads" & " Max > Spare thread" > Ques1 : > ====== > Both attributes have the value as Zero. As you said in below post that *Max > Spare Threads* is not anymore so Zero valus is expected for this but why the > "Min Spare Thread" value is zero. As per below documentation , default value is > 25 for *Min Spare threads*, Any thoughts why is it like that. > http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html > for your reference i am enclosing the server.xml & Probe application screenshot Normally attachments get stripped by the mailing list. I suspect that the reason I received them is because we're both on Yahoo. Your server.xml is not using Executors, and the Probe screen shot shows the normal HTTP and AJP connector pools as expected. If you uncomment the Executor element in server.xml and use it in one or more connectors, you'll see the Executor thread pool in Probe. The name will be the name that you gave it in server.xml Min Spare Threads shows up as it is configured in server.xml. Max Spare Threads appears to follow largestPoolSize (according to VisualVM). This appears to be a Probe issue. If you mix and match (for example, using Executors for HTTP/HTTPS and a private pool for AJP), then you'll see the appropriate thread pools in Probe. > Ques 2: > ====== > As MaxThreads & MinThreads are in executor now ,does that mean whatever i > threads count i define here will get shared across Http,Https,Ajp protocol ? You can mix and match. You can define some Connectors to use the Executor thread pool, and others to use a private thread pool. You can define multiple Executor thread pools for sharing between different groups of Connectors. If you don't configure a Connector to use an Executor, then it won't. So in order to use an Executor, you need to configure two items. 1. The Executor One or more, depending on your use case. 2. The Connector Every Connector that should use an Executor needs to be configured to use one explicitly. There are examples in the supplied server.xml > ques3 > ==== > how i can achieve Protocol based (http/Ajp) thread allocation in case if i dont > want it to use it from executor I don't think you can without using an Executor. > /Thanks/ > /Vicky/ > > *From:* Christopher Schultz > > *To:* Tomcat Users List > > *Sent:* Friday, 2 November 2012 11:05 PM > *Subject:* Re: Tomcat 6 query > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Vicky, > > On 11/2/12 4:40 AM, vicky007aggarwal@yahoo.co.in > wrote: > > Thanks mark. > > > > I concern why the minSpareThreads" & "maxSpareThreads" attributes > > dont exist at the below URL anymore > > > >> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html > > > > As in tomcat 5 , i am able to locate http connector > > This stuff isn't in the anymore: it's in the . > So, configure your Tomcat 6 connector to use an executor, then use > minSpareThreads on it. There is no maxSpareThreads anymore, only > maxThreads. > > Again: > http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html > > - -chris . . . just my two cents. /mde/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org