Thanks for your replies. I was trying to avoid using apache if possible. As for writing my own code, I was planning on doing this: Write a custom valve that looks at the request uri. If one of the "bad performing" page is requested, spawn off a separate thread (doug lea's PooledExecutor) and process request in that thread. In theory, to process the request, I obtain the wrapper (request.getWrapper()), do a wrapper.allocate() to get the servlet instance, and call service(req,resp) on the servlet. However, when I try this, the getWrapper() returns a null. Is there some other way I should be processing the request? Or is there a better way to achieve what I want?
Thanks, Prabhakaran. --- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote: > put apache/mod_proxy in front of it. > have apache redirect one path of JSPs to one > connector, > then redirect everything else to another connector > > Filip > > ----- Original Message ----- > From: "Shapira, Yoav" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > <[EMAIL PROTECTED]> > Sent: Friday, June 18, 2004 7:50 AM > Subject: RE: Multiple Thread Pools > > > > > > Hi, > > Not currently in tomcat. You'd have to write your > own code for this. > > You listed your options well at the end of your > message. > > > > Yoav Shapira > > Millennium Research Informatics > > > > > > >-----Original Message----- > > >From: Prabhakaran Nagarajan > [mailto:[EMAIL PROTECTED] > > >Sent: Thursday, June 17, 2004 7:31 PM > > >To: [EMAIL PROTECTED] > > >Subject: Multiple Thread Pools > > > > > >Is it possible in tomcat to segregate certain jsp > > >pages to its own thread pool/connector? > > >We have certain pages that take a while to > execute, > > >and when multiple users access the page, all > threads > > >are used up serving those requests. Weblogic > allows > > >defining multiple "ExecuteQueues" and assigning > jsp > > >/servlets to this queue -- you can either > throttle bad > > >pages or ensure thread availability for critical > > >pages. > > > > > >Is there a way in tomcat to achieve similar > results? > > >Or are my options limited to 1.increase the > maxThreads > > >count 2.try and improve the performance of those > pages > > >3.implement a poll/callback on the long running > page > > >to prevent tying the thread up. > > > > > >Thanks, > > >Prabhakaran. > > > > > > > > > > > >__________________________________ > > >Do you Yahoo!? > > >Take Yahoo! Mail with you! Get it on your mobile > phone. > > >http://mobile.yahoo.com/maildemo > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > 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: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
