Jetty 8:proxyservlet使用ExecutorThreadPool或QueuedThreadPool

Jetty 8:proxyservlet使用ExecutorThreadPool或QueuedThreadPool,jetty,embedded-jetty,jetty-8,Jetty,Embedded Jetty,Jetty 8,我正在使用Jetty 8及其ProxyServlet,我想知道使用最快的线程池是ExecutorThreadPool还是QueuedThreadPool 这是我当前使用的代码: Server-httpProxy=new-Server(); SelectChannelConnector=new SelectChannelConnector(); 连接器。设置端口(8087); connector.setMaxIdleTime(400000); connector.setThreadPool(新执行

我正在使用Jetty 8及其ProxyServlet,我想知道使用最快的线程池是ExecutorThreadPool还是QueuedThreadPool

这是我当前使用的代码:

Server-httpProxy=new-Server();
SelectChannelConnector=new SelectChannelConnector();
连接器。设置端口(8087);
connector.setMaxIdleTime(400000);
connector.setThreadPool(新执行线程池(256));
httpProxy.addConnector(连接器);

在我们的测试中,
QueuedThreadPool
与连接器一起使用的速度比
ExecutorThreadPool


我会使用
QueuedThreadPool
并使用
ExecutorThreadPool
进行试验,只有在线程池导致性能问题的情况下(根据我们的经验,这不太可能)。

在我们的测试中,
QueuedThreadPool
ExecutorThreadPool
用于连接器的速度更快

我会使用
QueuedThreadPool
并尝试
ExecutorThreadPool
,只有当线程池导致性能问题时(根据我们的经验不太可能)