From: | Bjørn T Johansen <btj(at)havleik(dot)no> |
---|---|
To: | "pgsql-general (at) postgresql (dot) org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Tomcat Connection Pool? |
Date: | 2003-09-03 21:56:42 |
Message-ID: | 1062626202.18977.21.camel@pennywise.havleik.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Oki, thx... Any ideas to what is sensible values also?
(Like number of maxIdle compared to maxActive, etc..)
BTJ
On Wed, 2003-09-03 at 15:34, Paul Thomas wrote:
> On 02/09/2003 23:06 Bjørn T Johansen wrote:
> > I am running a connection pool for the PostgreSQL and I was wondering
> > which values you would reccommend for the connection pool?
> >
> > <parameter>
> > <name>maxWait</name>
> > <value>5000</value>
> > </parameter>
> > <parameter>
> > <name>maxActive</name>
> > <value>10</value>
> > </parameter>
> > <parameter>
> > <name>maxIdle</name>
> > <value>2</value>
> > </parameter>
> >
> > What does maxWait and maxIdle means?
>
> maxWait is is maximum time the connection pool will wait for a connection
> to become available so it only has an effect when all maxActive
> connections are being used at the same time. maxIdle is the maximum number
> of connections what the pool will keep open. Using your settings as an
> example, say you reach a point where all 10 connections have beed created
> and are in use and that sometime later the nunber of requests drops so
> that they can serviced by just a few connections. In this case excess idle
> connections will be closed but there will always be at least maxIdle
> connections left open.
> HTH
From | Date | Subject | |
---|---|---|---|
Next Message | Carlos G Mendioroz | 2003-09-03 22:04:09 | Re: Index not being used ? |
Previous Message | Ron Johnson | 2003-09-03 21:55:55 | Re: Query |