Won't Do
Details
Details
Assignee
Unassigned
UnassignedReporter
Rilwan
RilwanPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 4 August 2021 at 20:24
Updated 8 November 2022 at 18:40
Resolved 8 November 2022 at 18:40
When load testing our Soap Service Lucee Server (for our Lucee Migration) we consistently experience an error 'The key [STATUSCODE] does not exist' each time we run our jmeter load testing script.
The error occurs on the following call (a store procedure call to our sql server 2019):
<cfstoredproc procedure="checkCredits" returncode="yes" datasource="#{our database}#"> <cfprocparam type="in" dbvarname="@{a parameter}" value="#{an argument}#" cfsqltype="CF_SQL_VARCHAR"> ... </cfstoredproc> <!--- Error Occurs here ---> <cfset credits=cfstoredproc.StatusCode>
With Adobe ColdFusion 18 under the same/more load we don't experience this error.
What we know is:
Even though there is no limit to the concurrent database connections count on both our ACF and Lucee Servers, but limit to active clients per sql database table, only Lucee is erroring.
Our Stored Procedure takes some time to process each query, I would say possibly up to 2 seconds, the SP read and/or writes to multiple tables.
My theory is:
Their seems to be a deadlock on the sql server side when there is too many simultaneous update/insert attempts to a single table, the sql server rejects connections or they timeout resulting in the error we experience.
Could this error be caused by the Lucee tomcat connection pool being larger than the Coldfusion one. e.g. if ACF has cap of something like 100 concurrent requests (the rest are queues) but Lucee has a higher cap, so as each request is being simultaneously processed the sql server connection limits will be exceeds on Lucee but not on ACF?