title: Apache Tomcat Exception - Too many open files
body: <p>We are running a web service in Apache Tomcat in Amazon Linux. Initially web-service is running properly. We are getting too many open files exception after making more than 1000 web request. Again this issue will be resolved when we re start the tomcat server. </p>
  
  <p>Please find below the Exception</p>
  
  <pre><code>25-Apr-2016 10:05:52.628 SEVERE [http-nio-8080-Acceptor-0] org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed
   java.io.IOException: Too many open files
          at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
          at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
          at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
          at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:686)
          at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>PS : we are not doing any file related operations in the web service .</p>