create a filter
Ken Dombeck wrote:
We have 2 applications installed inside the same Tomcat 5.0 instance
app1 and app2. URL app1.url.com is for app1 and app2.url.com is for
app2. Both URLs have the same ip address but still hit port 80. The
maxThreads for the connector is set to 100.
The problem we are experiencing is that app2 will slow down and consume
all 100 of the connector threads. What we would like to do is limit the
number of threads that each application can use to 50 so that one
application can not cause a denial of service attack to the other
applications in the container. By limiting the number of connections to
50 we would expect the 51st connection to that application to wait until
a thread freed up.
I know that I can create multiple connectors in the same service in the
server.xml but they would then have to listen on different ports and we
need both URLs to be listening on port 80. I have read that we could put
Apache in front of Tomcat and it could route the requests to the correct
port in Tomcat based on URL if we had multiple connectors listening on
different ports but we would like to just use Tomcat without anything
else.
Does any one know how to configure Tomcat to limit the number of
connections per application within the container?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]