From: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Thread hangs in VisibleBufferedInputStream.readMore
Date: Fri, 08 May 2009 00:10:49 +1200
Message-ID: <4A02CFC9.3070800@opencloud.com> (raw)
In-Reply-To: <20090507115919.GC28635@net-track.ch>
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>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com
Subject: Re: Thread hangs in VisibleBufferedInputStream.readMore
In-Reply-To: <4A02CFC9.3070800@opencloud.com>
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> <4A02CFC9.3070800@opencloud.com>
* 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