title: Tomcat performance tuning
body: <p>I am tuning the performance of Tomcat 7, the server is equipped with 24 cores and 32 GB memory, my testing interface is a RESTful service without any process(response immediately) and the configuration of server.xml is as following...</p>
  
  <pre><code>&lt;Connector port="8088" protocol="HTTP/1.1"
             connectionTimeout="20000"
             redirectPort="8443"
             enableLookups="false"
             compression="off"
             maxConnections="8192"
             maxThreads="1000"
             tcpNoDelay="true"/&gt;
  </code></pre>
  
  <p>and the JVM configuration...</p>
  
  <pre><code>-Xms8192M -Xmx16384M.
  </code></pre>
  
  <p>The host of JMeter is another computer has same specification with above server.
  And the configuration of JMeter heap is <code>-Xms12218m -Xmx24426m</code>.</p>
  
  <p>My JMeter test plan is 240 requests send to the RESTful interface concurrently for once, but I have noticed that, the average of response time for the first 100 is no more than 50ms but it increases to 1 sec in the next 100 and to 3 sec for the rest.</p>
  
  <p>I am curious about such phenomenon, is there any mistakes in the configurations or any suggestions? </p>
  
  <p>Thanks in advance.</p>