X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 90810D1B974 for ; Mon, 5 Apr 2004 21:56:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 02468-01 for ; Mon, 5 Apr 2004 18:56:45 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 0AE93D1B560 for ; Mon, 5 Apr 2004 18:56:13 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BAc5L-0002th-00; Tue, 06 Apr 2004 09:56:51 +1200 Message-ID: <4071D621.6030609@opencloud.com> Date: Tue, 06 Apr 2004 09:56:49 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Amiel Cc: pgsql-jdbc@postgresql.org Subject: Re: what is lslowing me down? JDBC or Postgresql itself? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/35 X-Sequence-Number: 9764 Jeff Amiel wrote: > Why is this happening? Is the jdbc driver the limiting factor? Is it > the database? Can anyone give me any suggestions to troubleshoot? Check the CPU usage of the client vs. server. Also check I/O on the server. This may show you the bottleneck directly. If there's no obvious bottleneck, you may be limited by your network; can you put the client and server on the same machine to eliminate this? From your description you are doing many small transactions and throwing more concurrent connections at it doesn't improve your throughput. I'd hazard a guess that you'll probably find you are I/O bound on the server as the backend will be doing a lot of fsyncs (or equivalent). What throughput do you get running the queries via psql? -O