Re: Performance problem using V3 protocol in jdbc driver

From: "Barry Lind" <blind(at)xythos(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-performance(at)postgresql(dot)org>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Performance problem using V3 protocol in jdbc driver
Date: 2005-08-17 05:43:40
Message-ID: 03E7D3E231BB7B4A915A6581D4296CC6015D5352@NSNOVPS00411.nacio.xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-performance

That was my suspicion as well, which is why I tried the V2 protocol.

I do not know of any specific queries that are causing the problem. As
I monitor 'top' I see processes utilizing a significant amount of CPU
running SELECT, UPDATE and DELETE, which would lead me to believe that
it isn't any one specific query.

How does one identify on a live system specific queries that are running
slow, especially with the V3 protocol and when the system is executing
about a 100 queries a second (which makes turning on any sort of logging
very very verbose)? (I just subscribed to the performance list, so this
is probably something that has been answered many times before on this
list).

I haven't tried to track down a performance problem like this before on
postgres. Since most of our large customers run Oracle that is where I
have the knowledge to figure something like this out.

Thanks,
--Barry

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tuesday, August 16, 2005 10:02 PM
To: Barry Lind
Cc: pgsql-performance(at)postgresql(dot)org; pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Performance problem using V3 protocol in jdbc driver

"Barry Lind" <blind(at)xythos(dot)com> writes:
> ... On a hunch I switched the jdbc driver to using the V2 protocol
> and the load on the machine dropped down to what it was when using
> Oracle and everything was fine.

First knee-jerk reaction is that it's an optimization problem stemming
from V3 protocol feeding parameterized queries to the backend where V2
did not, and the planner being unable to cope :-(

Can you identify the specific queries causing the problem?

regards, tom lane

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message mudfoot 2005-08-17 08:14:24 Re: Performance problem using V3 protocol in jdbc driver
Previous Message Tom Lane 2005-08-17 05:01:45 Re: Performance problem using V3 protocol in jdbc driver

Browse pgsql-performance by date

  From Date Subject
Next Message mudfoot 2005-08-17 08:14:24 Re: Performance problem using V3 protocol in jdbc driver
Previous Message Tom Lane 2005-08-17 05:01:45 Re: Performance problem using V3 protocol in jdbc driver