为JBOSS eap 7.1配置HTTP查询长度

时间:2018-06-27 08:58:40

标签: java jboss jboss-eap-7

从JBOSS eap 6.4迁移到JBOSS eap 7.1时遇到一些问题。 我需要配置HTTP线程。在JBOSS eap 6.4中,我有以下配置:

<subsystem xmlns="urn:jboss:domain:threads:1.1">
        <thread-factory name="HTTP-factory" group-name="http-executor" thread-name-pattern="HTTP-%t" priority="5"/>
        <bounded-queue-thread-pool name="http-executor">
            <queue-length count="4000"/>
            <max-threads count="1000"/>
            <keepalive-time time="30" unit="seconds"/>
        </bounded-queue-thread-pool>
        <bounded-queue-thread-pool name="http-executor-auth">
            <queue-length count="0"/>
            <max-threads count="1"/>
            <keepalive-time time="30" unit="seconds"/>
        </bounded-queue-thread-pool>
    </subsystem>

在JBOSS eap 7.1模块中,删除了jboss:domain:threads,并将有关HTTP线程的信息移至jboss:domain:io模块。我尝试配置它,但是在配置查询长度时遇到一些问题。 现在,我具有JBOSS eap 7.1的下一个配置:

<subsystem xmlns="urn:jboss:domain:io:2.0">
        <worker name="default" task-keepalive="30000" task-max-threads="1000"/>
        <buffer-pool name="default"/>
    </subsystem>

在RedHat文档和examples中,我找不到所需的信息。

也许有人可以帮助我正确配置HTTP线程。

谢谢。

1 个答案:

答案 0 :(得分:0)

EAP7的默认Web容器为 Undertow 。 Undertow中的所有侦听器都使用IO子系统提供的默认工作程序。此工作程序实例管理所有侦听器(AJP / HTTP / HTTPS)线程。您可以通过以下属性相应地配置工作者的行为:

io-threads

stack-size

task-keepalive

task-max-threads