System info: CF10 Update 14, Windows 2012 R2 and JDK 1.8.0_73
I tried to configure connector (AJP1.3) to use more than 256 threads using param "maxThreads", in file server.xml. Also I configure workers.properties to match values properlly. But when I tried it, never exceeds from 256 (using JConsole.to monitorize connector)
<Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" maxThreads="500" maxConnections="500" connectionTimeout="60000" />
I can view that the default protocol used by Tomcat is BIO that it's limited to 256 connections. Is it true?
Can I use NIO protocol to use more than 256 threads?
Thanks in advance.
I don't think you can use NIO with CF10. CF2016 defaults to use NIO.
It might be worth trying APR instead of BIO. How? Install tomcat native EG:
Copy DLL to CF10\cfusion\lib\tcnative-1.dll restart IIS and CF.
choose Native 1.2.10 Windows Binaries zip. Zip contains a 32 and 64 bit DLL. Select the correct bit for your environment.
Since you are using jconsole you might like to try jmc to check on tomcat mbeans, CPU, heap and non-heap values.
To install APR I've to do some steps (install apr libraries compiled with VC, and openssl)
We are thinking to migrate to CF2016.