title: When will a servlet container interrupt my thread?
body: <p>I'm writing a servlet, which is executed in Java servlet container (eg, JBoss, Jetty, Tomcat, GlassFish).</p>
  
  <p>What are the reasons for a servlet container to interrupt the thread running my HTTP request handler? Will it do that only when shutting down? Will it do that when the client is not responding?</p>
  
  <p>Is it standardized, or is any container free to do what he wishes?</p>
  
  <p>To clarify, I'm not talking about interrupting new threads that I create, only on the servlet container's threads my requests are running on. (Although it'll be interesting if you'll mention what happens to new threads in the answer).</p>