Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id DB0BA633C95 for ; Thu, 7 May 2009 09:06:24 -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 45732-04-3 for ; Thu, 7 May 2009 09:06:13 -0300 (ADT) X-Greylist: delayed 00:06:42.609632 by SQLgrey-1.7.6 Received: from cuzco.net-track.ch (cuzco.net-track.ch [194.153.188.156]) by mail.postgresql.org (Postfix) with SMTP id C71F9635045 for ; Thu, 7 May 2009 09:06:14 -0300 (ADT) Received: (qmail 8368 invoked by uid 1000); 7 May 2009 11:59:19 -0000 Date: Thu, 7 May 2009 13:59:19 +0200 From: Oliver Hitz To: pgsql-jdbc@postgresql.org Subject: Re: Thread hangs in VisibleBufferedInputStream.readMore Message-ID: <20090507115919.GC28635@net-track.ch> Mail-Followup-To: pgsql-jdbc@postgresql.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GPJrCs/72TxItFYR" Content-Disposition: inline In-Reply-To: <4A028DC7.8080504@opencloud.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.257 tagged_above=0 required=5 tests=AWL=0.257 X-Spam-Level: X-Archive-Number: 200905/46 X-Sequence-Number: 19596 --GPJrCs/72TxItFYR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. Oliver --GPJrCs/72TxItFYR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoCzSAACgkQ4hxFYtsxPohhZQCgncFxX3bQ73qd8DHo/mEzZPXd pksAn1MxsHhSBdZYneWHlqivZyifw2vR =84AD -----END PGP SIGNATURE----- --GPJrCs/72TxItFYR--