pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jeff Amiel <jeff@amiel.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: what is lslowing me down?  JDBC or Postgresql itself?
Date: Tue, 06 Apr 2004 09:56:49 +1200
Message-ID: <4071D621.6030609@opencloud.com> (raw)
In-Reply-To: <e368dd0e.0403300742.fc9345b@posting.google.com>
References: <e368dd0e.0403300742.fc9345b@posting.google.com>

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



view thread (4+ messages)  latest in thread

Message-ID: <4071D621.6030609@opencloud.com>
Permalink:  ../4071D621.6030609@opencloud.com/
Also on:    postgresql.org/message-id/4071D621.6030609@opencloud.com

 · 

reply

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, jeff@amiel.net
  Subject: Re: what is lslowing me down?  JDBC or Postgresql itself?
  In-Reply-To: <4071D621.6030609@opencloud.com>
  References: <e368dd0e.0403300742.fc9345b@posting.google.com> <4071D621.6030609@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