Re: Disconnecting non active (IDLE ) users - Mailing list pgsql-admin

From Shane Ambler
Subject Re: Disconnecting non active (IDLE ) users
Date
Msg-id 45E5AF4A.9060706@Sheeky.Biz
Whole thread Raw
In response to Re: Disconnecting non active (IDLE ) users  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
List 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@disyu.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@Sheeky.Biz

Get Sheeky @ http://Sheeky.Biz

pgsql-admin by date:

Previous
From: "Ezequias Rodrigues da Rocha"
Date:
Subject: Re: Disconnecting non active (IDLE ) users
Next
From: "Ted Byers"
Date:
Subject: Re: [Bulk] Re: Disconnecting non active (IDLE ) users