O'Reilly logo

Servlet, JSP and Spring MVC: A Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11

Asynchronous Processing

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.

Overview

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required