pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason L. Buberel <jason@buberel.org>
To: pgsql-jdbc@postgresql.org
Subject: Modifying the concurrent transaction limit
Date: Tue, 06 Mar 2007 08:12:13 -0800
Message-ID: <45ED92DD.3080307@buberel.org> (raw)

I've been running into a problem with a multithreaded, long-running 
processing application. The problem occurs when the number of open 
transactions reaches the magic number of '50'. When this occurs, all 
further database access blocks and the application has to be restarted.

I am using Hibernate with the simple JDBC Transaction Factory:

       <property name="transaction.factory_class">
            org.hibernate.transaction.JDBCTransactionFactory</property>

I keep track of the number of open concurrent transactions using a 
static method on my hibernate session factory, and sure enough, any time 
I see a 'stuck' application and check the logs, I will see:

2007.03.06 09:10:05 DEBUG SessionOwnerImpl 
broker_zip_market_heat_quartiles subreport filler - Current trxn counter: 50

What I would like to know is:

A. Is there really a built-in limit to the number of concurrent 
transactions?
B. Can this value be configured?

I have done what I can to try and ensure that these transactions are 
cleaned up when processing completes, but sometimes garbage collection 
does not occur soon enough and I accumulate 50 open transactions, 
wedging the process. If there is something else that I should be doing 
to avoid this type of problem, please suggest!

Thanks,
Jason

PS I am using v8.1 of the driver with Postgres 8.1.x.



view thread (2+ messages)  latest in thread

Message-ID: <45ED92DD.3080307@buberel.org>
Permalink:  ../45ED92DD.3080307@buberel.org/
Also on:    postgresql.org/message-id/45ED92DD.3080307@buberel.org

 · 

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: jason@buberel.org
  Subject: Re: Modifying the concurrent transaction limit
  In-Reply-To: <45ED92DD.3080307@buberel.org>
  References: <45ED92DD.3080307@buberel.org>

* 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