Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 23BF36324F0 for ; Fri, 30 Jul 2010 10:52:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 35661-01 for ; Fri, 30 Jul 2010 13:52:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.pcl-ipout01.plus.net (relay.pcl-ipout01.plus.net [212.159.7.99]) by mail.postgresql.org (Postfix) with ESMTP id A6373632257 for ; Fri, 30 Jul 2010 10:52:03 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFd2UkxUXeb0/2dsb2JhbACgF3HAUoU5BA Received: from outmx03.plus.net ([84.93.230.244]) by relay.pcl-ipout01.plus.net with ESMTP; 30 Jul 2010 14:51:52 +0100 Received: from 84-51-143-99.archon037.adsl.metronet.co.uk ([84.51.143.99] helo=server3.office.archonet.com) by outmx03.plus.net with esmtp (Exim) id 1Oeq07-0006q5-NB; Fri, 30 Jul 2010 14:51:51 +0100 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTPA id 6FA6D274118; Fri, 30 Jul 2010 14:51:51 +0100 (BST) Message-ID: <4C52D8F7.6020705@archonet.com> Date: Fri, 30 Jul 2010 14:51:51 +0100 From: Richard Huxton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6 MIME-Version: 1.0 To: Kananda CC: "pgsql-general@postgresql.org" Subject: Re: PostgreSQL keepalives help References: <4A704C139DFD804DB74FFB9CC0BE79FC790B5631C3@SBS.step.local> In-Reply-To: <4A704C139DFD804DB74FFB9CC0BE79FC790B5631C3@SBS.step.local> 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=-2.6 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201007/1012 X-Sequence-Number: 165897 On 29/07/10 21:16, Kananda wrote: > I need the records are free for edit, in few minutes. Therefore I set > the KEEPALIVE configuration in my "postgresql.conf": > tcp_keepalives_idle = 60 # TCP_KEEPIDLE, in seconds; > tcp_keepalives_interval = 60 # TCP_KEEPINTVL, in seconds; > tcp_keepalives_count TCP_KEEPCNT = 5 #; If this is actually what you have in your file, you have an error in your count setting. Try "show tcp_keepalives_count;" and so on - just check they're set as you expect them to be. If they have the right values, put wireshark or some other network monitor onto the connection and see if any packets are being sent back and fore while there is no real traffic. Oh, and please don't cross-post to multiple lists (particular -cluster-hackers - can't see the relevance of that). -- Richard Huxton Archonet Ltd