From: Kris Jurka <books@ejurka.com>
To: Phillip Mills <pmills@systemcore.ca>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Beginning tuning
Date: Tue, 6 Nov 2007 14:42:56 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0711061437540.6917@leary.csoft.net> (raw)
In-Reply-To: <dd0408e50711060609n4ca6d049kac9f1bf356d1da4d@mail.gmail.com>
References: <dd0408e50711060609n4ca6d049kac9f1bf356d1da4d@mail.gmail.com>
On Tue, 6 Nov 2007, Phillip Mills wrote:
> One of the first things I've noticed out of a number of thread dumps is that
> there's about an 80% chance that the stack points to I/O requests from
> PGStream.ReceiveChar(). I'm wondering about any hints or pointers that
> would help me understand whether that's expected behavior, or something that
> needs fixing, or just generally how to evaluate/improve JDBC performance.
>
The ReceiveChar call is waiting for data from the backend. I'm not sure
how you're identifying blocked threads, but ReceiveChar is a blocking call
underneath the hood. So this just shows that the driver is waiting while
queries are executing which is perfectly expected.
Kris Jurka
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: books@ejurka.com, pmills@systemcore.ca
Subject: Re: Beginning tuning
In-Reply-To: <Pine.BSO.4.64.0711061437540.6917@leary.csoft.net>
References: <dd0408e50711060609n4ca6d049kac9f1bf356d1da4d@mail.gmail.com> <Pine.BSO.4.64.0711061437540.6917@leary.csoft.net>
* 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