[英]Setting up a dedicated Executor per ServerConnector in Jetty
I'm trying to configure a dedicated executor in jetty.xml
(jetty-9) for each of my ServerConnector
s, as I'm able to do in Tomcat, but for some reason I get lost. 我正在尝试为每个
ServerConnector
在jetty.xml
(jetty-9)中配置专用执行程序,就像我在Tomcat中一样,但是由于某种原因,我迷路了。
I'm using the following configuration: 我正在使用以下配置:
<Call name="addConnector">
<Arg>
<New id="proxyConnector" class="org.eclipse.jetty.server.ServerConnector">
<Arg name="server"><Ref refid="Server" /></Arg>
<Arg name="acceptors" type="int">-1</Arg>
<Arg name="selectors" type="int">-1</Arg>
<Arg name="factories">
<Array type="org.eclipse.jetty.server.ConnectionFactory">
<Item>
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
<Arg name="config"><Ref refid="httpConfig" /></Arg>
<Arg name="compliance"><Call class="org.eclipse.jetty.http.HttpCompliance" name="valueOf"><Arg><Property name="jetty.http.compliance" default="RFC7230"/></Arg></Call></Arg>
</New>
</Item>
</Array>
</Arg>
<Set name="host">127.0.0.1</Set>
<Set name="port">50000</Set>
<Set name="idleTimeout">30000</Set>
<Set name="soLingerTime">-1</Set>
<Set name="acceptorPriorityDelta">0</Set>
<Set name="acceptQueueSize">0</Set>
</New>
</Arg>
</Call>
Is this even possible ? 这有可能吗?
Executors
are server-wide, and many components within Jetty expect that. Executors
是服务器范围的,Jetty中的许多组件都希望这样做。
If you feel you need this, file an enhancement request at 如果您认为需要此信息,请在以下位置提交增强请求
https://github.com/eclipse/jetty.project/issues https://github.com/eclipse/jetty.project/issues
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.