Re: idle in transaction

From: "Sriram Dandapani" <sdandapani(at)counterpane(dot)com>
To: João Paulo Ribeiro <jp(at)mobicomp(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: idle in transaction
Date: 2006-09-18 16:02:59
Message-ID: 6992E470F12A444BB787B5C937B9D4DF05DF1A7F@ca-mail1.cis.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi

I use JBOSS 4.0.3 to manage my connection pooling. Is there a way to configure / modify code to take care of this

Thanks for your input

Sriram

________________________________

From: João Paulo Ribeiro [mailto:jp(at)mobicomp(dot)com]
Sent: Monday, September 18, 2006 2:15 AM
To: Sriram Dandapani
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] idle in transaction

Hi.

Are you using DODS/Enhydra to manage your database connection pool?
If yes, see my email in the Enhydra mailing list:
http://mail-archive.objectweb.org/dods/2006-05/msg00000.html
http://mail-archive.objectweb.org/dods/2006-06/msg00000.html

The latest DODS dont have this issue anymore. You just use "RollbackOnReset" option.

Bests regards.
João Paulo Ribeiro

Sriram Dandapani wrote:

I use postgres 8.1.2 database and postgres 8.1.404 jdbc driver .

I keep seeing "idle in transaction" connections on the postgres box all the time. The application logic closes all connections , so it makes me wonder if the driver is issuing a begin statement after every commit to leave a floating transaction open.

This is causing autovacuum to not finish (and hence I have to frequently issue database-wide vacuums to prevent the transaction id wraparound problem)

Any help here is appreciated

Thanks

Sriram

--
João Paulo Ribeiro | Senior Software Engineer
jp(at)mobicomp(dot)com

PHONE: + 351 253 305 250
FAX : + 351 253 305 250
www.mobicomp.com

________________________________________________________________

About Solutions | Wireless World

CONFIDENTIALITY NOTICE: This message, as well as existing attached files, is confidential and intended exclusively for the individual(s) named as addressees. If you are not the intended recipient, you are kindly requested not to make any use whatsoever of its contents and to proceed to the destruction of the message, thereby notifying the sender.
DISCLAIMER: The sender of this message can not ensure the security of its electronic transmission and consequently does not accept liability for any fact which may interfere with the integrity of its content.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message João Paulo Ribeiro 2006-09-18 16:50:54 Re: idle in transaction
Previous Message Markus Schaber 2006-09-18 09:54:02 Re: multidimensinal array