You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Meryl Silverburgh <si...@gmail.com> on 2006/04/04 08:42:15 UTC
How can I limit the number of instance my servlet can server concurrently?
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?
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I limit the number of instance my servlet can server concurrently?
Posted by David Rees <dr...@gmail.com>.
On 4/3/06, Meryl Silverburgh <si...@gmail.com> wrote:
> 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@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I limit the number of instance my servlet can server concurrently?
Posted by Leon Rosenberg <ro...@googlemail.com>.
I suppose yes, using the singlethreaded model and 10 servlet instances.
Though, what is the purpose of this limitation, maybe there are better
ways to solve it?
regards
Leon
On 4/4/06, Meryl Silverburgh <si...@gmail.com> wrote:
> 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?
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I limit the number of instance my servlet can server concurrently?
Posted by Leon Rosenberg <ro...@googlemail.com>.
On 4/4/06, Rhino <rh...@sympatico.ca> wrote:
> Just a guess but couldn't you accomplish this by setting up your servlet to
> use a connection pool and then limiting the connection pool to 10 threads
> maximum?
I think that assuming a DB behind each and every webapp is kindof
risky. Or what kind of connection pool you are speaking about?
>
> --
> Rhino
Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How can I limit the number of instance my servlet can server concurrently?
Posted by Rhino <rh...@sympatico.ca>.
Just a guess but couldn't you accomplish this by setting up your servlet to
use a connection pool and then limiting the connection pool to 10 threads
maximum?
--
Rhino
----- Original Message -----
From: "Meryl Silverburgh" <si...@gmail.com>
To: <us...@tomcat.apache.org>
Sent: Tuesday, April 04, 2006 2:42 AM
Subject: How can I limit the number of instance my servlet can server
concurrently?
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?
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org