pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Kerr <dmk@mr-paradox.net>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Idle in TX / Java process hang's in the vicinity of JDBC
Date: Mon, 2 Aug 2010 07:11:12 -0700
Message-ID: <20100802141112.GC70014@mr-paradox.net> (raw)
In-Reply-To: <4C535206.4070703@opencloud.com>
References: <20100729182538.GB49189@mr-paradox.net>
	<alpine.BSO.2.00.1007291604460.25915@leary.csoft.net>
	<20100729210645.GA61182@mr-paradox.net>
	<alpine.DEB.2.00.1007300944020.2654@aragorn.flymine.org>
	<4C52FF6A.3090302@mr-paradox.net>
	<4C535206.4070703@opencloud.com>

On Sat, Jul 31, 2010 at 10:28:22AM +1200, Oliver Jowett wrote:
- David Kerr wrote:
- 
- > we've got a working theory that the program opens up a connection to
- > DB1 and DB2.  In DB1 we're running a very long query (15 minutes) and
- > after some sort of timeout(or something) the program hangs leaving the
- > idle in TX in DB2.
- 
- You may want to look at any firewalls you have between the client and
- the DBs. Often, stateful firewalls will drop state for connections that
- are idle for extended periods.
- 
- -O
- 

Turns out, they were accessing a 2nd DB on a seprate server that (that the
developers neglected to mention) and that process was spinning due to bad
statistics on the tables. 

so this process was just sitting there legitimately waiting.

Thanks for all the replies!

Dave



view thread (7+ messages)

Message-ID: <20100802141112.GC70014@mr-paradox.net>
Permalink:  ../20100802141112.GC70014@mr-paradox.net/
Also on:    postgresql.org/message-id/20100802141112.GC70014@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, oliver@opencloud.com
  Subject: Re: Idle in TX / Java process hang's in the vicinity of JDBC
  In-Reply-To: <20100802141112.GC70014@mr-paradox.net>
  References: <20100729182538.GB49189@mr-paradox.net> <alpine.BSO.2.00.1007291604460.25915@leary.csoft.net> <20100729210645.GA61182@mr-paradox.net> <alpine.DEB.2.00.1007300944020.2654@aragorn.flymine.org> <4C52FF6A.3090302@mr-paradox.net> <4C535206.4070703@opencloud.com> <20100802141112.GC70014@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