Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 6724 invoked from network); 3 Jul 2009 17:21:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 17:21:59 -0000 Received: (qmail 59609 invoked by uid 500); 3 Jul 2009 17:22:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 59566 invoked by uid 500); 3 Jul 2009 17:22:05 -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 59555 invoked by uid 99); 3 Jul 2009 17:22:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 17:22:04 +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 minoritystorm@gmail.com designates 209.85.219.214 as permitted sender) Received: from [209.85.219.214] (HELO mail-ew0-f214.google.com) (209.85.219.214) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 17:21:57 +0000 Received: by ewy10 with SMTP id 10so2996069ewy.0 for ; Fri, 03 Jul 2009 10:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JTn9r4qakcIBkPzOQgClZ5WbQ3MkpobVjIXruVwm4Ik=; b=S/HHTsmWey4IWO8ZwUzvZn2ALLb7q6STDtzztyWIDaNU+hNT7sACZcgNO21oPCjn9j njtZrJuDq5NUtgljBtV/M009fjnOMvGI7RvRX9wLMtdkeMntyDWGSiDkX17ddC2CfdiF +esdYpBFllNKK3iAgWKAmHnra9RQJLU96QHXg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pnmDvyHWyTgRBBkbWLi3ZY4nQoWYnKkKkyt+eM1jV8j3Yf/f3eRyq+edFZilrvDF/n H8JPuTR/n5gg6A/vNnxWJZuB30QD60wGSneWcZIVIhNS6QTdA40uV2vL5uLECdkyvMm+ xo3Ie2tOgn0lSNkQUQJUf9toMaqe8MM2zjGpw= MIME-Version: 1.0 Received: by 10.216.72.206 with SMTP id t56mr426980wed.31.1246641695516; Fri, 03 Jul 2009 10:21:35 -0700 (PDT) In-Reply-To: <4A4E08C4.1050105@apache.org> References: <4A4E08C4.1050105@apache.org> Date: Fri, 3 Jul 2009 20:21:35 +0300 Message-ID: Subject: Re: mod_jk 1.2.28 connection pooling not working From: Brain Stormer To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Well, I have the following parameters.. tomcat-maxThreads=512 httpd-MaxClients=600 http-ThreadsPerChild=60 httpd-connection_pool_size=60 And after adjusting all parameters still no pools created, only 2 to 4 threads have the ESTABLISHED connection state. Any idea! On Friday, July 3, 2009, Mladen Turk wrote: > Brain Stormer wrote: > > Hello, > > I have a tomcat-5.5 / httpd.worker-2.2 / mod_jk-1.2.28. > > The problem is that connection_pool_size is set to 60 and httpd > available threads per chilf is set to 60 and tomcat max threads set to > 100 and min set to 60 and checking netsat tells that there are only 2 > to 4 connections between httpd.worker and tomcat AJP port. > > > > It can be caused by many things, and the probable one is the > configuration. > > And BTW, your stup won't work well. > If the connection_pool_size is 60 you will have > 60 * MaxClients/ThreadsPerChild connections to Tomcat, and > given your 100 limit this will not work. > > The proper number is: > connection_pool_size = maxThreads in Tomcat / (MaxClients / ThreadsPerChild) > > If you have in httpd.conf > MaxClients 600 > ThreadsPerChild 60 > > and > maxThreads="100" for AJP Connector in server.xml > > this would give > worker.xxx.connection_pool_size=10 (100/(600/60)) > > > Regards > -- > ^(TM) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org