title: Apache + Tomcat with mod_jk: maxThread setting upon load balancing
body: <p>I have Apache + Tomcat setup with mod_jk on 2 servers. Each server has its own Apache+Tomcat pair, and every request is being served by Tomcat load balancing workers on 2 servers. </p>
  
  <p>I have a question about how Apache's <code>maxClient</code> and Tomcat's <code>maxThread</code> should be set. </p>
  
  <p>The default numbers are,
  <code>Apache: maxClient=150,  Tomcat: maxThread=200</code></p>
  
  <p>In this configuration, if we have only 1 server setup, it would work just fine as Tomcat worker never receives the incoming connections more than 150 at once. However, if we are load balancing between 2 servers, could it be possible that Tomcat worker receives 150 + (some number from another server) and make the maxThread overflow as <code>SEVERE: All threads (200) are currently busy</code>? </p>
  
  <p>If so, should I set Tomcat's <code>maxThread=300</code> in this case?</p>
  
  <p>Thanks</p>