Rainer, we are not using Apache web server. Instead, HTTP requests get sent directly to the servlets in Tomcat. We do, however use the (hardware) load balancer.
Is there a way to just configure Tomcat to allow some servlets have higher priorities than others or dedicate a pool of connections to them? Thanks. Alec On 12/22/06, Rainer Jung <[EMAIL PROTECTED]> wrote:
You can configure two connectors with associated pools. If you need to talk to both parts of the app under the same name and port, you can front those two connectors (ports) with apache/mod_jk. With a sufficient recent version of mod_jk you can configure several workers to forward to different connectors on the same tomcat (you'll only need a recent version, if you want to combine this with load balancing. Earlier versions required the workers name to be equal to the jvmRoute of tomcat, so you could only use one worker per tomcat target. Now we have a route attribute). JkMount /myapp/perf/* perf_worker JkMount /myapp/status stat_worker and in workers.properties: worker.list=perf_worker worker.perf_worker.port=8009 ... worker.list=stat_worker worker.stat_worker.port=8010 and in server.xml use two Connectors with ports 8009 and 8010 with different thread counts. This will not use priorities though. Also: you could get the same thread exhaustion problem on the apache layer. Regards, Rainer Alec Swan schrieb: > Hi all, > > sorry for reposting. I posted the original message before I completed > registration, so I am not sure if got through. > > I have two servlets: Worker and Status. Worker servlet gets hit very > frequently and consumes all available Tomcat threads (configured via > maxThreads). Thus, whenever I try to access the Status thread I have to > wait > a long time. Is there a way to either dedicate some threads to Status > servlet or set Status servlet priority higher than Worker servlet so that I > can access it faster? Note that both servlets need to work in the same > Tomcat instance. > > Thanks. > > Alec > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]