title: Tomcat 8 NIO,how it works?
body: <p>I have created simple Spring Boot MVC application and noticed (using <code>JVisualVM</code>) that all my threads have prefix nio. That mean that Tomcat use <code>java.nio</code> package. We can add the following params to Tomcat configuration : <code>maxThreads,maxConnections</code>. As I know that mean:
  For example we have <code>maxThreads</code> = 2 , <code>maxConnections</code> = 10000, then Selector of first thread (from <code>java.nio</code>) can handle <code>10000</code> concurrent requests, but execute each sequentially according to <code>selectorKeys</code> and the same behavior for the second thread. </p>
  
  <p>Does it work in this way , if yes how do you usually choose the best option for <code>maxConnections</code></p>
  
  <p>Thank in advance </p>
  
  <p>(BTW I use Tomcat 8 )</p>