"org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted" in JBoss EAP

Solution Verified - Updated -

Issue

Encountering DBCP exceptions such as the one below

... org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted
 at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:103)
 at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:544)
 ...
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
 at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:756)
 at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
 ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) - all versions

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content