Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjfl-00055G-Hk for pgsql-admin@arkaria.postgresql.org; Thu, 03 Oct 2013 14:14:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VRjfl-0004rs-11 for pgsql-admin@arkaria.postgresql.org; Thu, 03 Oct 2013 14:14:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjfk-0004qn-2G for pgsql-admin@postgresql.org; Thu, 03 Oct 2013 14:14:32 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjfd-0003C4-Es for pgsql-admin@postgresql.org; Thu, 03 Oct 2013 14:14:31 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VRjfc-0003dj-RP for pgsql-admin@postgresql.org; Thu, 03 Oct 2013 07:14:24 -0700 Date: Thu, 3 Oct 2013 07:14:24 -0700 (PDT) From: David Johnston To: pgsql-admin@postgresql.org Message-ID: <1380809664829-5773234.post@n5.nabble.com> In-Reply-To: References: Subject: Re: postgres connections in IDLE state.. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 3.7 (+++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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