Delay obtaining connections in JBoss Web Server (JWS)

Solution Verified - Updated -

Issue

  • Encountering delays obtaining connections from Tomcat (DBCP) pool
  • Successive thread dumps reveal lengthy pauses with thread stacks such as the below

    ... java.lang.Thread.State: RUNNABLE
        ...
        at oracle.net.nt.TimeoutSocketChannel.read(TimeoutSocketChannel.java:144)
    ...
        at oracle.jdbc.driver.T4CConnection.doPingDatabase(T4CConnection.java:4874)
        ...
        at oracle.jdbc.driver.PhysicalConnection.pingDatabase(PhysicalConnection.java:5376)
        at oracle.jdbc.driver.T4CConnection.isValid(T4CConnection.java:4926)
        at org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:917)
        at org.apache.tomcat.dbcp.dbcp2.PoolableConnection.validate(PoolableConnection.java:282)
        at org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
        at org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java:342)
        at org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:478)
        at org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:359)
        at org.apache.tomcat.dbcp.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:134)
        at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1532)
    

Environment

  • Red Hat JBoss WebServer (JWS)
    • 5
    • 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In