• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF10 maxThreads AJP connector

New Here ,
Feb 22, 2017 Feb 22, 2017

Copy link to clipboard

Copied

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.

Views

404

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 22, 2017 Feb 22, 2017

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 23, 2017 Feb 23, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation