Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id F3A0E9FA210 for ; Wed, 28 Feb 2007 12:37:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 98632-02 for ; Wed, 28 Feb 2007 12:37:01 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141]) by postgresql.org (Postfix) with ESMTP id 397A89FB54A for ; Wed, 28 Feb 2007 12:37:16 -0400 (AST) Received: from ppp247-71.static.internode.on.net (HELO [192.168.8.200]) ([203.122.247.71]) by ipmail02.adl2.internode.on.net with ESMTP; 01 Mar 2007 03:05:31 +1030 X-IronPort-AV: i="4.14,231,1170595800"; d="scan'208"; a="91152169:sNHT2080274378" Message-ID: <45E5AF4A.9060706@Sheeky.Biz> Date: Thu, 01 Mar 2007 03:05:22 +1030 From: Shane Ambler User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) MIME-Version: 1.0 To: Ezequias Rodrigues da Rocha CC: Goran Rakic , pgsql-admin@postgresql.org Subject: Re: Disconnecting non active (IDLE ) users References: <55c095e90702280801q484b75d8v3833a18c5d5a5c16@mail.gmail.com> In-Reply-To: <55c095e90702280801q484b75d8v3833a18c5d5a5c16@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.934 tagged_above=0 required=5 tests=AWL, BAYES_40, BIZ_TLD, SPF_HELO_PASS X-Spam-Level: * X-Archive-Number: 200702/345 X-Sequence-Number: 24810 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 : >> 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