Connection Pool statistics look low and database shows more than expected connections

Solution Verified - Updated -

Issue

  • JDBC connection leak
  • apps are closing connections properly still lot of inactive session at DB side
  • causing slow performance and eventually bringing down the application and DB
  • Datasource statistics ActiveCount is dramatically different from the open connections as reported by the database server
  • The datasource pool has prefill enabled

Environment

  • Red Hat JBoss Enterprise Application Platform prior to 6.4.5
  • prefill=true as defined in
    • jboss-as-datasources_1_1.xsd
    • jboss-as-datasources_1_2.xsd

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