Re: [Fwd: postgres 8.4.1 number of connections] - Mailing list pgsql-performance

From Josh Berkus
Subject Re: [Fwd: postgres 8.4.1 number of connections]
Date
Msg-id 4C770F75.20702@agliodbs.com
Whole thread Raw
In response to [Fwd: postgres 8.4.1 number of connections]  ("Maria L. Wilson" <Maria.L.Wilson-1@nasa.gov>)
List pgsql-performance
> 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

pgsql-performance by date:

Previous
From: Bob Lunney
Date:
Subject: Re: Slow Query
Next
From: Scott Carey
Date:
Subject: Re: Performance on new 64bit server compared to my 32bit desktop