Re: postgres connections in IDLE state..

From: "Rajagopalan, Jayashree" <Jayashree(dot)Rajagopalan(at)emc(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: postgres connections in IDLE state..
Date: 2013-10-03 16:34:05
Message-ID: A7A2044B8A59DA4F9F07599B3B1CA1210E4CA164@MX101CL02.corp.emc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks.

But what is the process id that is attached to the connection? Can I track down or debug/ get more information related to that process id?

Regards
Jayashree

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of David Johnston
Sent: 03 October 2013 19:44
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] postgres connections in IDLE state..

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(at)postgresql(dot)org) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Albe Laurenz 2013-10-04 07:45:55 Re: partitioning system tables
Previous Message David Johnston 2013-10-03 14:14:24 Re: postgres connections in IDLE state..