首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为JBOSS 7.1配置HTTP查询长度

为JBOSS 7.1配置HTTP查询长度
EN

Stack Overflow用户
提问于 2018-06-27 08:58:39
回答 1查看 1K关注 0票数 0

从JBossEAP6.4到JBossEAP7.1的迁移有一些问题。我需要配置HTTP线程。在JBOSS 6.4中,我有了下一个配置:

代码语言:javascript
复制
<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>

在JBossEAP7.1模块中,JBOSS :domain:线程被删除,有关HTTP线程的信息被移到jboss:domain:io模块。我尝试配置它,但在配置查询长度时遇到了一些问题。现在我有了JBossEAP7.1的下一个配置:

代码语言:javascript
复制
<subsystem xmlns="urn:jboss:domain:io:2.0">
        <worker name="default" task-keepalive="30000" task-max-threads="1000"/>
        <buffer-pool name="default"/>
    </subsystem>

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

也许有人能帮我正确配置HTTP线程。

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2018-06-27 15:36:09

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

代码语言:javascript
复制
io-threads

stack-size

task-keepalive

task-max-threads
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51058571

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档