commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: DBCP Locking Up?
Date Thu, 06 Dec 2007 10:31:37 GMT

This helps a lot, I haven't noticed the thread blocking, waiting for a database connection.
We were already suspecting the database, since it is really loaded.

We'll now try to optimize our settings, the settings of the pool such as enabling statement
pooling, and the iBatis settings.

We have already ordered new servers for the database ;-)

Thanks for your help!


-----Original Message-----
From: Mark Thomas [] 
Sent: 5. december 2007 20:59
To: Jakarta Commons Users List
Subject: Re: DBCP Locking Up?

Mark Thomas wrote:
> wrote:
>> Hello Mark,
>> We are using DBCP 1.2.2 with Pool 1.3 and have the JAR files in the webapp (WEB-INF/lib).
Tomcat version is 5.5.
> I am trying to work out if you are hitting a known issue or have found a
> new one. Can you provide the entire thread dump rather than just the
> extract? You can send it directly to me if you don't want to post it to the
> list.

OK, the relevant thread is below. This thread, which looks like it is
waiting for a response from the database, has got the lock on the
connection pool that is blocking all of your other db related threads. A
quick Google doesn't shed a huge amount of light on the issue. The
following were mentioned as possible causes:
- tablespace full
- one connection editing a row, not committing and another connection
trying to edit the same row

Neither of these seem to be relevant to not being able to create a
connection. I would take a look at the database to see why this thread
appears to be taking so long to be creating a new connection.



"TP-Processor38" daemon prio=10 tid=0x007b4800 nid=0x39 runnable
   java.lang.Thread.State: RUNNABLE
	at Method)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(
	at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(
	at oracle.jdbc.driver.T4C8TTIpro.receive(
	at oracle.jdbc.driver.T4CConnection.connect(
	at oracle.jdbc.driver.T4CConnection.logon(
	at oracle.jdbc.driver.PhysicalConnection.<init>(
	at oracle.jdbc.driver.T4CConnection.<init>(
	at oracle.jdbc.driver.OracleDriver.connect(
	- locked <0xa0d7ef00> (a org.apache.commons.dbcp.PoolableConnectionFactory)
	- locked <0xa0c50750> (a org.apache.commons.pool.impl.GenericObjectPool)

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message