XARecoveryModule leaks org.postgresql.jdbc4.Jdbc4Connection when using PostgreSQL as XA Datasource

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
  • PostgresSQL
  • XA Datasource

Issue

  • XARecoveryModule leaks org.postgresql.jdbc4.Jdbc4Connection object every (periodicRecoveryPeriod + recoveryBackoffPeriod) seconds when using PostgreSQL as XA Datasource <xa-datasource>

Resolution

The fix was included in EAP 5.2.0. Upgrade to the latest version of EAP 5.

Or you can apply one-off patches for this issue which are available from the followings:

Root Cause

Diagnostic Steps

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.