Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: How can I limit the number of instance my servlet can server concurrently?

David Rees

2006-04-04

Replies:

On 4/3/06, Meryl Silverburgh <silverburgh.meryl@(protected):
> Is it possible to limit Tomcat to just handle 10 concurrently request
> to my servlet?
> for all others (11 and onward), it will queue them up, and serve them
> only when one of the currently-serving request is done?

If you are only using one servlet per Tomcat instance, then yes you
can do this pretty easily by limiting the number of threads for your
connector.

Otherwise, this is something best implemented in the servlet itself
(and is pretty easy to do).

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.