Skip to main content
Participant
February 22, 2017
Question

CF10 maxThreads AJP connector

  • February 22, 2017
  • 1 reply
  • 535 views

Hi,

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)

server.xml

<Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" maxThreads="500" maxConnections="500" connectionTimeout="60000" />

workers.properties

worker.cfusion.max_reuse_connections=500

worker.cfusion.connection_pool_size=500

worker.cfusion.connection_pool_timeout=60

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.

    This topic has been closed for replies.

    1 reply

    Legend
    February 22, 2017

    Hi,

    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.

    from https://tomcat.apache.org/download-native.cgi

    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.

    HTH, Carl.

    trilogiAuthor
    Participant
    February 23, 2017

    Thanks Carl.

    To install APR I've to do some steps (install apr libraries compiled with VC, and openssl)

    We are thinking to migrate to CF2016.

    Xavi