title: Tomcat: what happens when number of connections exceeds number of threads?
body: <p>According to this <a href="https://howtodoinjava.com/spring-boot2/embedded-tomcat-configuration/" rel="noreferrer">link</a>, the properties server.tomcat.max-connections and server.tomcat.max-threads determine the max number of connections and max number of threads in the application.</p>
  
  <p>I have two questions:</p>
  
  <ol>
  <li><p>What happens if at a given moment number of connections exceed number of threads? What will happen to the connections that did not get a thread?</p></li>
  <li><p>What happens if the server has to serve more requests that server.tomcat.max-connections? Will it just ignore the requests that arrived after number of threads connections has reached its maximum value?</p></li>
  </ol>