Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id F2FF99F9258 for ; Tue, 6 Nov 2007 15:43:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 86107-07-2 for ; Tue, 6 Nov 2007 15:42:28 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 3780D9F9000 for ; Tue, 6 Nov 2007 15:42:57 -0400 (AST) Received: (qmail 8104 invoked by uid 1112); 6 Nov 2007 19:42:56 -0000 Date: Tue, 6 Nov 2007 14:42:56 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Phillip Mills cc: pgsql-jdbc@postgresql.org Subject: Re: Beginning tuning In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/15 X-Sequence-Number: 17770 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