jboss7增加线程数

最近在做的需求,使用jboss7部署的,在压测的时候发现吞吐量总是上不去,找了好久发现是jboss7默认的线程数有些少

1、如下图,默认的jboss7的standalone.xml里的线程模块是空的。


默认的线程大约60左右吧(这个没有仔细测)

2、修成核心线程500,最大线程600, executor的最大连接数600,效果很明显哦



为了方便复制,贴出增加部分

     1、   <subsystem xmlns="urn:jboss:domain:threads:1.1">
            <bounded-queue-thread-pool name="http-executor">
                <core-threads count="500"/>
                <queue-length count="50"/>
                <max-threads count="600"/>
                <keepalive-time time="3" unit="seconds"/>
            </bounded-queue-thread-pool>
        </subsystem>


      2、      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-post-size="2048" executor="http-executor" max-connections="600"/>

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值