Documentation Center

Increasing the Number of Connector Threads

Set the number of connector threads based on the number of expected concurrent Contenta Web users by modifying the file server.xml in the conf/ subdirectory of the Apache Tomcat home directory.

Procedure

  1. Access the conf/ subdirectory of the Tomcat home directory and in this location, open server.xml for editing.
  2. Configure the Connector element for port 8009 if you will use that port for Contenta Web (for example, using Tomcat with Apache HTTP server and mod_jk connector on Linux):
    1. In the server.xml file, find the Connector element, which looks as follows by default:
      <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    2. Configure the number of connector threads by adding attributes. The following are initial recommended settings:
      <Connector port="8009" protocol="AJP/1.3" 
      redirectPort="8443"
      connectionTimeout="20000"
      secure="false"
      maxThreads="500"
      minSpareThreads="10"
      maxPostSize="52428800"
      URIEncoding="UTF-8"
      />
  3. Configure the Connector element for port 8080 if you will use that port for Contenta Web (for example, using Tomcat with IIS and ARR on Windows):
    1. In the server.xml file, find the Connector element, which looks as follows by default:
      <Connector port="8080" protocol="HTTP/1.1"/>
    2. Configure the number of connector threads by adding attributes. The following are initial recommended settings:
      <Connector port="8080" protocol="HTTP/1.1"
      redirectPort="8443"
      connectionTimeout="20000"
      secure="false"
      maxThreads="500"
      minSpareThreads="10"
      maxPostSize="52428800"
      URIEncoding="UTF-8"
      />
  4. Save and close server.xml.
  5. Restart Tomcat.