tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Can Tomcat restrict concurrent threads of a servlet?
Date Thu, 22 May 2003 20:24:47 GMT

See SingleThreadModel:

However, STM is evil: search this list's archives for more details.

You may be better off delegating the resource-consuming functionality to
a non-servlet class.  Then in that class you can synchronize the
relevant methods / resources / do any number of other things to control
resource consumption.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: William Huang []
>Sent: Thursday, May 22, 2003 4:10 PM
>Subject: Can Tomcat restrict concurrent threads of a servlet?
>I know Tomcat can set up the maximum concurrent users. But could Tomcat
>set up to restrict maximum number of concurrent requests to a single
>servlet? I want to know this because I have one servlet that is
>resource-consuming and I don't want this servlet to induce
>Thanks in advance.
>With best regards,

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message