pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Kerr <dmk@mr-paradox.net>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Idle in TX / Java process hang's in the vicinity of JDBC
Date: Thu, 29 Jul 2010 14:06:45 -0700
Message-ID: <20100729210645.GA61182@mr-paradox.net> (raw)
In-Reply-To: <alpine.BSO.2.00.1007291604460.25915@leary.csoft.net>
References: <20100729182538.GB49189@mr-paradox.net>
	<alpine.BSO.2.00.1007291604460.25915@leary.csoft.net>

- >org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:235)
- 
- The stacktrace indicates that Statement.executeQuery was called and the 
- JDBC driver started receiving the results from the server.  The driver is 
- in the middle of reading a particular row and is waiting for more data 
- from the server.  From what you're saying the server thinks it is done, 
- but the driver does not, indicating loss of protocol synchronization. 
- That's tough to debug after the fact, without a reproducible case or 
- network traffic dump.  If you still have this connection stuck in this 
- state you could try poking around with a debugger to say what values the 
- ReceiveTupleV3 routine has for l_size and already stored in answer.

Thanks, that's helpful! we don't have a debugger configured for that JVM
so we might have to try to catch it next time around.

Getting protocols out of sync sort of sounds to me like a network glitch
of some sort to me. does that sound possible?

- >We were wondering what the:
- >org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
- >  - locked org.postgresql.core.v3.QueryExecutorImpl@18493c9
- >
- >was refering to.
- >
- 
- This is just indicating that this routine is synchronized.  This is done 
- to prevent multiple threads from trying to communicate with the server 
- simultaneously and does not indicate a problem.

Awesome, thanks.


Dave



view thread (7+ messages)  latest in thread

Message-ID: <20100729210645.GA61182@mr-paradox.net>
Permalink:  ../20100729210645.GA61182@mr-paradox.net/
Also on:    postgresql.org/message-id/20100729210645.GA61182@mr-paradox.net

 · 

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: dmk@mr-paradox.net, books@ejurka.com
  Subject: Re: Idle in TX / Java process hang's in the vicinity of JDBC
  In-Reply-To: <20100729210645.GA61182@mr-paradox.net>
  References: <20100729182538.GB49189@mr-paradox.net> <alpine.BSO.2.00.1007291604460.25915@leary.csoft.net> <20100729210645.GA61182@mr-paradox.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