Re: Idle connections

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Georgi Ivanov <georgi(dot)r(dot)ivanov(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Idle connections
Date: 2010-10-06 13:33:26
Message-ID: 4CAC7AA6.7040201@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/10/2010 14:26, Georgi Ivanov wrote:
> Hi,
> I have some issue where
> SELECT * from pg_stat_activity WHERE current_query='<IDLE>';
> returns too many rows .

What do you mean by "too many"?

> What is the meaning of IDLE ?

It means a client is keeping a connection open, but not executing any
queries.

> I suspect that the server is overloaded with idle connections, but i
> don't know why .
> Sometimes i am forced to do
> SELECT pg_terminate_backend(procpid) from pg_stat_activity where
> current_query='<IDLE>';
>
>
> Queries comes from 2 web nodes .
>
> Any ideas why is this happening ?

Are you using any kind of connection pooler?

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Brinkman 2010-10-06 13:39:24 custom search_path reverts to default after DB restore
Previous Message Georgi Ivanov 2010-10-06 13:26:32 Idle connections