Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3BD99632E65 for ; Mon, 2 Aug 2010 11:11:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 79716-03 for ; Mon, 2 Aug 2010 14:11:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vexbert.mr-paradox.net (vexbert.mr-paradox.net [198.145.180.174]) by mail.postgresql.org (Postfix) with ESMTP id E4B25632EF0 for ; Mon, 2 Aug 2010 11:11:14 -0300 (ADT) Received: by vexbert.mr-paradox.net (Postfix, from userid 18391) id 25D48845F3; Mon, 2 Aug 2010 10:11:12 -0400 (EDT) Date: Mon, 2 Aug 2010 07:11:12 -0700 From: David Kerr To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Subject: Re: Idle in TX / Java process hang's in the vicinity of JDBC Message-ID: <20100802141112.GC70014@mr-paradox.net> References: <20100729182538.GB49189@mr-paradox.net> <20100729210645.GA61182@mr-paradox.net> <4C52FF6A.3090302@mr-paradox.net> <4C535206.4070703@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C535206.4070703@opencloud.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/3 X-Sequence-Number: 20806 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