Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7E9CB633CA2 for ; Thu, 7 May 2009 09:11:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 46294-08 for ; Thu, 7 May 2009 09:10:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id AA3AE633C2B for ; Thu, 7 May 2009 09:10:54 -0300 (ADT) Received: from 219-89-243-186.adsl.xtra.co.nz ([219.89.243.186] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1M22R8-0004Tf-0X for pgsql-jdbc@postgresql.org; Fri, 08 May 2009 00:10:50 +1200 Message-ID: <4A02CFC9.3070800@opencloud.com> Date: Fri, 08 May 2009 00:10:49 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Thread hangs in VisibleBufferedInputStream.readMore References: <20090428061649.GA5531@net-track.ch> <49F6A066.8010105@opencloud.com> <20090428114048.GF7543@net-track.ch> <20090428195540.GA21951@net-track.ch> <4A02861D.1070505@ikoffice.de> <4A028DC7.8080504@opencloud.com> <20090507115919.GC28635@net-track.ch> In-Reply-To: <20090507115919.GC28635@net-track.ch> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/47 X-Sequence-Number: 19597 Oliver Hitz wrote: > On 07 May 2009, Oliver Jowett wrote: >> No it isn't, go look at the thread dumps, his application is blocking on >> read not on write. > > The strange thing is that I didn't see anything at the backend. All > connections were idle at that time. If the application was hanging > because of a transaction lock, shouldn't I see this in pg_locks or > pg_stat_activity? > > Anyway, I have changed some transactions and re-arranged some of the > code. The application is running for about four days now without a hang, > but I'm not sure if the problem has really gone away. Yes, it seems quite strange .. Probably you would need to attach a debugger to the server process corresponding to the hung application thread and see what it was doing, but that might be tricky to arrange. -O