From: David Johnston <polobo@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Re: postgres connections in IDLE state..
Date: Thu, 3 Oct 2013 07:14:24 -0700 (PDT)
Message-ID: <1380809664829-5773234.post@n5.nabble.com> (raw)
In-Reply-To: <A7A2044B8A59DA4F9F07599B3B1CA1210E4CA0F7@MX101CL02.corp.emc.com>
References: <A7A2044B8A59DA4F9F07599B3B1CA1210E4CA0F7@MX101CL02.corp.emc.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Rajagopalan, Jayashree wrote
> I'm seeing intermittently - the DB connections getting stale - and not
> getting returned to the Hibernate session pool. Some of the connections
> are as old as 9 days.
The whole point of a connection pool is to keep open connections to the
database. These connections, when not in use, are "IDLE". I would expect
to see a single connection for every permanent pool connection.
I don't see any problem with what you show and describe other than I'd
expect more than 2 idle connections and I'd expect the supposed "problem" to
be persistent.
In your example the backend has been alive and in the pool since 9/11 and
the most recent time it was used was 10/2. In between those two dates there
were many other times the connection was used.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/postgres-connections-in-IDLE-state-tp5773232p5773234.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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-admin@postgresql.org
Cc: polobo@yahoo.com
Subject: Re: postgres connections in IDLE state..
In-Reply-To: <1380809664829-5773234.post@n5.nabble.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