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 E0A5ECE51 for ; Wed, 30 May 2012 22:19:20 +0000 (UTC) Received: (qmail 30673 invoked by uid 500); 30 May 2012 22:19:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 30610 invoked by uid 500); 30 May 2012 22:19:17 -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 30599 invoked by uid 99); 30 May 2012 22:19:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 22:19:17 +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; Wed, 30 May 2012 22:19:10 +0000 Received: from [192.168.245.129] (p549E0AC6.dip0.t-ipconnect.de [84.158.10.198]) by tor.combios.es (Postfix) with ESMTPA id 1CD5ADA0857 for ; Thu, 31 May 2012 00:18:47 +0200 (CEST) Message-ID: <4FC69CC6.3070104@ice-sa.com> Date: Thu, 31 May 2012 00:18:46 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint References: <4FC629BF.9010703@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 > > On Wed, May 30, 2012 at 10:07 AM, Christopher Schultz < > chris@christopherschultz.net> wrote: .. >> >> If my environment and requirements match yours, you'd need 10000 * >> max_pool_size * 66KiB at peak usage. That's about 640MiB for each >> connection you want in 10k pools. For a (uniform) max pool size of 4, >> you'll need more than 2GiB of heap space just for connection pools. >> >> Is that acceptable? >> Taking the same hypothetical case and figures : Assuming that you need a total of (10000 * 4 connections) = 40000 connections. Assuming that it takes 10ms to set up one such connection, and that once it is there, you don't do anything with it and just let it be for now. Assuming we ignore such things like bandwidth, other things happening on that host etc.. It then takes a total of (10 ms * 40000) = 400000 ms = 400s = ~ 6.5 minutes just to set up these connections. Is that acceptable ? What I mean is that once you start playing with such numbers, you may want to look at other aspects than just required memory.. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org