Hi, On Thu, Oct 9, 2014 at 5:09 PM, Nils Kilden-Pedersen <[email protected]> wrote: > My question was specific to using the Jetty instance exclusively as a proxy, > using AsyncProxyServlet. > > The assumption is that it's fully async, meaning that at no point in > proxying a request does a thread/core wait/idle. If that assumption is true, > what do I gain from adding more threads, other than increased context > switching?
If you can guarantee that the whole processing is fully async, and provided you give Jetty thread pool all the threads Jetty needs to function (schedulers, background threads, selectors, acceptors, etc.), then perhaps you can run with a "small" thread pool. I don't know exactly what value that is, though. Also, some operation gets dispatched in Jetty in any case; a typical example are failures, since trying to close a connection may block. We always recommend to give the Jetty thread pools plenty of room. If it's not needed, Jetty won't even instantiate threads that won't use. But if they are needed, Jetty has room to do things, rather than halting for lack of threads. -- Simone Bordet ---- http://cometd.org http://webtide.com http://intalio.com Developer advice, training, services and support from the Jetty & CometD experts. Intalio, the modern way to build business applications. _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
