在Jetty 9中更改线程池大小

如何在嵌入式Jetty 9中更改线程池大小? 我们需要任何特定的组件吗?

来自docs :

Server实例提供ThreadPool实例,该实例是其他Jetty服务器组件使用的默认Executor服务。 线程池的主要配置是最大和最小大小,并在etc / jetty.xml中设置。

   10 1000    

要么

 QueuedThreadPool threadPool = new QueuedThreadPool(100, 10); Server server = new Server(threadPool); 

如上所述,并在上面的Java代码示例中进行了更正,现在将线程池作为Jetty 9(及更高版本)中的构造函数参数提供。

更正后的XML示例:

         10 200 60000 false  ...