O'Reilly logo

Servlet & JSP: A Tutorial, Second Edition 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 18

Asynchronous Processing

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.

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

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