Quarkus transaction periodic recovery connection leak
Issue
- Every two minutes, the "periodic recovery" thread runs for each XA data source. It opens a connection to the database (Microsoft SQL Server), performs some queries, and then closes the connection. Over time, the difference between "Start create new connection for pool" and "Closing physical connection" log entries shows that database connections are left open, which is confirmed on the SQL Server end in the dm_exec_connections table.
Environment
- Quarkus
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.