We are planning migration from ColdFusion 11 to Lucee 126.96.36.199 in the upcoming weeks. On some of our web pages, we serve thumbnails (100x100 jpgs) residing on a different network server. In ColdFusion 11, these requests take 10ms each. On Lucee, the requests take 1,000ms, or 100x longer. A page that used to load in under a second now could take 20-30 seconds.
The code is quite simple for our getThumbnail.cfm?id=[#] page:
<cfset loc = “\\networkserver\images\thumbnail_[#].jpg”>
<cfcontent type = “image/jpeg” file = “#loc#” deleteFile = “No” reset=“yes”>
I’ve also tried modified code, which did not improve performance
loc = “\\networkserver\images\thumbnail_[#].jpg”;
imagefile = FileReadBinary(loc);
<cfcontent type = “image/jpeg” variable = “#imagefile#” reset=“yes”>
Does anyone know what could be causing the slow performance or additional overhead? We are running Windows 2019 on all servers and we don’t believe there are any network bottlenecks to the Lucee server. I have written some custom Java code in Lucee to speed up other parts of the application, but I was hoping this would not be necessary here.