From: Shane Ambler <pgsql@Sheeky.Biz>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
Cc: Goran Rakic <gossa@disyu.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Disconnecting non active (IDLE ) users
Date: Thu, 01 Mar 2007 03:05:22 +1030
Message-ID: <45E5AF4A.9060706@Sheeky.Biz> (raw)
In-Reply-To: <55c095e90702280801q484b75d8v3833a18c5d5a5c16@mail.gmail.com>
References: <erv48i$26o7$1@news.hub.org>
<55c095e90702280801q484b75d8v3833a18c5d5a5c16@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pgsql@Sheeky.Biz, ezequias.rocha@gmail.com, gossa@disyu.com
Subject: Re: Disconnecting non active (IDLE ) users
In-Reply-To: <45E5AF4A.9060706@Sheeky.Biz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox