title: Tomcat - maxThreads vs. maxConnections
body: <p>In Tomcat's <code>server.xml</code> what is <code>maxThreads</code> versus <code>maxConnections</code>?</p>
  <p>I understand that <code>maxConnections</code> is the number of connections open to the server.</p>
  <p>And <code>maxThreads</code> is the maximum number of request processing threads .</p>
  <p>But how do these two configuration parameters work together? -- Obviously you will not set <code>maxConnections</code> to 1000  and <code>maxThreads</code> to 10.</p>
  <p>What is the relationship between the two configuration parameters?</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Connector 
      port=&quot;8443&quot; 
      protocol=&quot;org.apache.coyote.http11.Http11Protocol&quot;
      maxThreads=&quot;250&quot; 
      SSLEnabled=&quot;true&quot; 
      scheme=&quot;https&quot; secure=&quot;true&quot;
      clientAuth=&quot;false&quot; 
      sslProtocol=&quot;TLS&quot; 
      connectiontimeout=&quot;20000&quot;
  /&gt;
  </code></pre>