You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Neil Laurance <Ne...@iggroup.com> on 2011/08/31 08:54:31 UTC

DBCP deadlock similar to DBCP-270

Hi there,

We are using:
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Tomcat 6.0.29

We appear to be having a similar issue to:
https://issues.apache.org/jira/browse/DBCP-270

Except our stacktrace line-numbers are different.

Is there any easy of confirming the version of dbcp we have? I exploded  tomcat-dbcp.jar and took a look, and nothing obvious ?

I have attached a [sanitised] catalina.out.

The evictor timer is locking the GenericObjectPool, but is blocked.


"Timer-0" daemon prio=10 tid=0x00002aaab85b1800 nid=0x4f4a waiting for monitor entry [0x00000000409c5000]

   java.lang.Thread.State: BLOCKED (on object monitor)

        at org.apache.tomcat.dbcp.dbcp.AbandonedTrace.addTrace(AbandonedTrace.java:176)

        - waiting to lock <0x00000000c4574a88><monitor://%3c0x00000000c4574a88%3e> (a org.apache.tomcat.dbcp.dbcp.PoolableConnection)

        at org.apache.tomcat.dbcp.dbcp.AbandonedTrace.init(AbandonedTrace.java:92)

        at org.apache.tomcat.dbcp.dbcp.AbandonedTrace.(AbandonedTrace.java:82)

        at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.(DelegatingStatement.java:61)

        at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.createStatement(DelegatingConnection.java:224)

        at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:331)

        at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java:312)

        at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.evict(GenericObjectPool.java:1217)

        - locked <0x00000000c00e3328><monitor://%3c0x00000000c00e3328%3e> (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool)

        at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1341)

        at java.util.TimerThread.mainLoop(Timer.java:512)

        at java.util.TimerThread.run(Timer.java:462)


Other threads are then blocked on the timer:

"tomcat-thread-660" daemon prio=10 tid=0x00002aaab8964800 nid=0x6139 waiting for monitor entry [0x000000006ec7b000]

   java.lang.Thread.State: BLOCKED (on object monitor)

        at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:917)

        - waiting to lock <0x00000000c00e3328><monitor://%3c0x00000000c00e3328%3e> (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool)

        at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)

        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

        at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)

        at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)

        at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:940)

        at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:1003)

        at org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:144)

Thanks for any advice, Neil

________________________________
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Group Holdings plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.

Re: DBCP deadlock similar to DBCP-270

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/8/31 Neil Laurance <Ne...@iggroup.com>:
> Hi there,
>
> We are using:
>
> Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>
> Tomcat 6.0.29
>
> (...)
>
> Is there any easy of confirming the version of dbcp we have? I exploded
>  tomcat-dbcp.jar and took a look, and nothing obvious ?

apache-tomcat-6.0.x-src.zip -> build.properties.default
See
commons-dbcp.version=
commons-pool.version=

also all version updates are mentioned in changelog either under
"General" or under "Other".

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: DBCP deadlock similar to DBCP-270

Posted by Mark Thomas <ma...@apache.org>.
On 31/08/2011 07:54, Neil Laurance wrote:
> Hi there,
> 
> We are using:
> 
> Red Hat Enterprise Linux Server release 5.4 (Tikanga)
> 
> Tomcat 6.0.29
> 
> We appear to be having a similar issue to:
> 
> https://issues.apache.org/jira/browse/DBCP-270
> 
> Except our stacktrace line-numbers are different.

Hmm. The stack trace indicates you are using Pool 1.4 but Tomcat 6.0.29
should be based on Pool 1.5.4 (which has fixed a lot of deadlock issues).

It looks like 6.0.29 was built with the wrong version of Commons Pool.

An upgrade to the latest 6.0.x should fix this.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org