ORM datasource connection leaks on Lucee 7: is it fixed for you?

Back in March, ORM users on Lucee 7.0.2 reported datasource connections leaking, so the pool slowly ran dry (LDEV-6129).

We have since fixed three leak paths in the datasource manager:

  • If resetting auto-commit fails when a request ends, the connection is now removed from the pool instead of being lost.
  • The same applies when starting a transaction fails right after borrowing a connection.
  • If releasing connections fails at the end of a request, the rest of the cleanup (including ORM) still runs.

These fixes are in 7.0.6.9, 7.1.1.13 and 8.0.0.194, and in every later build.

If you were affected, could you let us know whether the leaks are gone on a current build? Any “still happening” reports are just as welcome, ideally with your Lucee version, ORM extension (Lucee or Ortus) and version, and database. If we hear nothing within a week, we’ll close the ticket as fixed.

I’ve been following this thread because Galaxie Blog leans on ORM pretty heavily on Lucee. It runs on the ORM extension with MariaDB under Lucee 7.x, and it uses ORM on nearly every page and in the admin. I’m glad to say I haven’t seen the connection pool run dry since moving to it. It’s a small site, so take it for what it’s worth, but I thought it might help to hear from someone it’s working for. Thanks for chasing these down.

1 Like

Thanks Gregory, that’s really useful to hear, especially from a site that uses ORM on nearly every page. Thanks for taking the time to report back and help improve Lucee.