Servlet 3.0 introduced support for asynchronous processing and Servlet 3.1 adds two relevant listeners, ReadListener and WriteListener. This chapter explains this new feature and presents examples on how to make use of it.
A computer has limited memory. The servlet/JSP container designer knew this and provided some configurable settings to make sure the container could run within the hosting computer’s means. For instance, in Tomcat 8 the default maximum number of threads for processing incoming requests is 200. If you have a multiprocessor server, then you can safely increase this number, but other than that it’s recommended to use this default value.
A servlet or filter holds a request ...