pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Maria L. Wilson <Maria.L.Wilson-1@nasa.gov>
Cc: pgsql-performance@postgresql.org
Subject: Re: [Fwd: postgres 8.4.1 number of connections]
Date: Thu, 26 Aug 2010 18:05:57 -0700
Message-ID: <4C770F75.20702@agliodbs.com> (raw)
In-Reply-To: <4C76CEAB.1070308@nasa.gov>
References: <4C76CEAB.1070308@nasa.gov>


> 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



view thread (5+ messages)  latest in thread

Message-ID: <4C770F75.20702@agliodbs.com>
Permalink:  ../4C770F75.20702@agliodbs.com/
Also on:    postgresql.org/message-id/4C770F75.20702@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, Maria.L.Wilson-1@nasa.gov
  Subject: Re: [Fwd: postgres 8.4.1 number of connections]
  In-Reply-To: <4C770F75.20702@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox