App 10x slower on Lucee compared to CF

Hi all

I’m migrating an application from a coldfusion instance to a Lucee instance running both on the same win2k22 server. Site is accessable from a internal 1 gbit/s network with < 40 µs latency. Hardware spec is Xeon E5-2690 12 Cores / 16GB RAM.

If I run the app via chromium based browsers against the cf server, then a page of the app loads in 300ms. Everything runs very excellent. If I run the same code against lucee-6.1.0.243/Tomcat 9.0.86/jre11 via IIS, then the pages take around 3 seconds to fully load.

I already disabled the settings under ‘monitoring’ in lucee admin, with the idea to gain additional speed. At settings within ‘performance’ i already tried all possible combinations without result.

I’m using a mssql server via “Microsoft SQL Server (Vendor Microsoft)” driver for a required db connection. I’m using the same database on the database server as the CF instance is using. So, I guess the db server backend is Ok as the cf instance can reach the nice performance.

I suspected the driver is probably not so fast and tried to switch it. But I was not able to make a connection to the mssql db by using the other “jTDS (MSQL and Sybase)” driver. There is a error thrown at the first variable of any code when I’m using this driver.

Lucee 6.1.0.243 Error (java.util.NoSuchElementException)
Message	Unable to validate object
Stacktrace	The Error Occurred in
Java Stacktrace	lucee.runtime.exp.NativeException: Unable to validate object

I suspect the db driver from microsoft or maybe some component of the webserver is not so fast.

Does somebody having the experience to find the root cause for this slower behaviour?

Br, Tom

Folks, I’ve found the solution. Looks like it’s related to ipv6; maybe only in case you server has ipv6 enabled.

  • Locate “lucee\tomcat\conf\server.xml”
  • Try adding address="::1" to the <Connector protocol="AJP/1.3"> element. Should look like this at the end.
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector protocol="AJP/1.3" address="::1"
	    port="8009"
	    secret="SomeSecret"
	    secretRequired="true"
               redirectPort="8443" />
  • Restart services

Credits, Julian_Halliwell:
Lucee performing very slow compared to Adobe CF site - dev / support - Lucee Dev

2 Likes