Re: [Fwd: postgres 8.4.1 number of connections]

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Maria L(dot) Wilson" <Maria(dot)L(dot)Wilson-1(at)nasa(dot)gov>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [Fwd: postgres 8.4.1 number of connections]
Date: 2010-08-27 01:05:57
Message-ID: 4C770F75.20702@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Carey 2010-08-27 04:30:58 Re: Performance on new 64bit server compared to my 32bit desktop
Previous Message Bob Lunney 2010-08-27 00:19:37 Re: Slow Query