Hi all, I’ve started using Lucee in place of Adobe Coldfusion recently, and its been functioning well, with the exception that every so often, one or more datasources’ active connections starts to skyrocket. This occurs on both a MSSQL and Oracle database connection.
Default settings allow infinite connections. This resulted in over 1700 active connections to a datasource, and this number didn’t decrease, and caused an out of memory error, killing Lucee.
I had since tried setting connection limit to 100, which was abided by, but due to these connections not dropping, new requests would hang until one became available, or a page timeout occurred. They never became available, and this required a restat of Tomcat.
No other database connection properties were changed before this issue started occurring. I’ve been experimenting with setting limits and timeouts but to no avail.
The cause of this active connection ballooning is unknown. No obvious cause yet.
There are many variables, so hope this helps: Running Tomcat 9.0.107, Lucee 6.2.1.122.
I hope someone can help with likely settings to stop this from occuring, but obviously it depends on the cause!
EDIT: Just some additional info - there was aprox 700 hits in the 20 minutes before the datasource active connection count maxed at 100. These queries are basic and should close the connection quick enough that this much traffic during this 20 minutes should not cause issues.
Cheers, Dan