Servlet 3.0 introduced a new feature that enables servlets to process requests asynchronously. This chapter explains this 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 7 the 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 processing thread until it completes its task. If the ...