Performance issue with Lucee, AJP, and IIS

I asked for help on GitHub from Bilal (iis2tomcat), and he requested me to make an adjustment in BonCode and change the value of the “Server.” I set the value to “::1” because that is what responds when I ping localhost.

<Settings>
<Server>::1</Server>
<Port>8009</Port>
<EnableRemoteAdmin>True</EnableRemoteAdmin>
<EnableHeaderDataSupport>True</EnableHeaderDataSupport>
<ModCFMLSecret>xxxx</ModCFMLSecret>
<RequestSecret>xxxx</RequestSecret>
<PacketSize>65536</PacketSize>
<MaxConnections>4000</MaxConnections>
</Settings>

Server.xml

<Connector 
		protocol="AJP/1.3" 
		port="8009" 
		packetSize="65536" 
		secret="xxx" 
		secretRequired="true" 
		redirectPort="8443" 
		address="::1"
		enableLookups="false"
		keepAliveTimeout="-1"
		maxThreads="4000"
	/>

The information that made all the difference is that the “MaxConnections” in BonCode must be the same value as the “maxThreads” in the server.xml. Along with keepAliveTimeout=“-1”. These adjustments completely changed the performance. I will include a screenshot of the test.


Checks: 478.436
http_req_waiting: 116.76ms

Thank you to everyone who contributed to the discussion and took the time to respond to me. I hope this thread helps other people who, like me, are struggling to improve performance.

5 Likes