Skip site navigation (1) Skip section navigation (2)

Re: Disconnecting non active (IDLE ) users

From: Shane Ambler <pgsql(at)Sheeky(dot)Biz>
To: Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com>
Cc: Goran Rakic <gossa(at)disyu(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Disconnecting non active (IDLE ) users
Date: 2007-02-28 16:35:22
Message-ID: 45E5AF4A.9060706@Sheeky.Biz (view raw or flat)
Thread:
Lists: pgsql-admin
Ezequias Rodrigues da Rocha wrote:
> I would like to know how postgresql defines that a connection is
> inactive. I have the same problem but in the future I couldn't restart
> my server every day.

I believe IDLE = not currently processing a query / sending data back to 
client.

> Any explanation ?
> Ezequias
> 
> 2007/2/26, Goran Rakic <gossa(at)disyu(dot)com>:
>> I have installed POSTGRESQL 8.2 on W2K3 32bit , 100 users connecting from
>> desktop applications and 200 users connecting thru web service from 
>> handheld
>> computers
>>
>> I have problem with second groups of users.
>>
>> Often they do not disconnect from POSTGRE Server and with time passing 
>> thru
>> I have lot of IDLE users and very much memory consumptions. From time to
>> time that can crash server then only restarting server will kill all
>> postgres.exe from memory and this annoying me, because that I build 
>> script
>> to restart server every night. I could not get programmers to change
>> program.

200 web based users should be sharing a smaller number of connections 
(maybe 50 to 100).
What are you using to generate the pages? php, asp, perl?
Do you use persistent connections in the above or some sort of pooling 
between the two (like pgpool)? or some fancy tracking of each users very 
own connection?

I would be looking into the web server connections and seeing if the 
number of connections from there grows and in so finding why they don't 
get disconnected when finished.

>> Is there parameters which will disconnect IDLE users if they excided some
>> time or some program which will purge memory from non active posgres.exe
>>


-- 

Shane Ambler
pgSQL(at)Sheeky(dot)Biz

Get Sheeky @ http://Sheeky.Biz

In response to

pgsql-admin by date

Next:From: Ted ByersDate: 2007-02-28 17:29:50
Subject: Re: [Bulk] Re: Disconnecting non active (IDLE ) users
Previous:From: Ezequias Rodrigues da RochaDate: 2007-02-28 16:01:01
Subject: Re: Disconnecting non active (IDLE ) users

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group