What causes 'org.apache.tomcat.jdbc.pool.ConnectionPool.abandon Connection has been abandoned' in JBoss Web Server?

Solution Verified - Updated -

Issue

  • Encountering the WARNING below in JWS logs

    ... WARNING [Tomcat JDBC Pool Cleaner[...]] org.apache.tomcat.jdbc.pool.ConnectionPool.abandon Connection has been abandoned PooledConnection[...]:java.lang.Exception
            at org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:1163)
            at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:816)
            at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:660)
            at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:198)
            at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:132)
            ...
            at org.myco.MyClass.someMethod(...)
    
  • System has configured removeAbandoned*/logAbandoned properties

Environment

  • Red Hat JBoss Web Server (JWS) 5

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