Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5E2BB632BC9 for ; Thu, 26 Aug 2010 22:06:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 67440-05 for ; Fri, 27 Aug 2010 01:06:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 1ECE6632AF3 for ; Thu, 26 Aug 2010 22:06:07 -0300 (ADT) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1OonOI-0007yH-DI; Thu, 26 Aug 2010 18:06:03 -0700 Message-ID: <4C770F75.20702@agliodbs.com> Date: Thu, 26 Aug 2010 18:05:57 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: "Maria L. Wilson" CC: pgsql-performance@postgresql.org Subject: Re: [Fwd: postgres 8.4.1 number of connections] References: <4C76CEAB.1070308@nasa.gov> In-Reply-To: <4C76CEAB.1070308@nasa.gov> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201008/290 X-Sequence-Number: 40133 > One of our many concerns has been the way we handle connections to the > database. java/hibernate handle their own pooling so I understand that > using anything else is out of the question. It's not out of the question, but it's probably not necessary. > Our jboss configuration > currently defaults to 5 connections per database. On our main database > server, we handle 7 of the databases that this application uses. On > this one server, we usually average around 300 - 500 connections to the > server. Do you have 10 to 20 application servers? Otherwise I don't understand how you're getting 300 to 500 connections. Do you have any stats about how many connections for each database each JBOSS server actually needs? It seems unusual that it would need more than one or two. Also, why does the application use 7 different databases? -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com