问题描述
在 JBoss7 中,我们通过使用此限制了 Web 连接数
In JBoss7 we've restricted number of web connections by using this
<connector name="https" scheme="https" protocol="HTTP/1.1" socket-binding="https" secure="true" max-connections="3000">
for urn:jboss:domain:web:1.0
子系统,在wildfly 中被urn:jboss:domain:undertow:1.2
替换.如何在wildfly中设置max-connections
?
for urn:jboss:domain:web:1.0
subsystem which is replaced by urn:jboss:domain:undertow:1.2
in the wildfly. How to setup max-connections
in wildfly?
我浏览了文档并没有找到匹配的属性.
I went through the documentation and didn't find matching attribute.
谢谢
推荐答案
尝试在过滤器定义下添加
Try add under filters definition
<filters>
<connection-limit name="limit-connections" max-concurrent-requests="3000" queue-size="100"/>
</filters>
然后在主机或位置下添加(取决于您的需要)
and then under host or location add (depends on your need)
<filter-ref name="limit-connections"/>
另请参阅配置 Web 服务器池:http://www.javacodegeeks.com/2014/01/entering-undertow-web-server.html
Also take a look in Configuring the Web server Pool: http://www.javacodegeeks.com/2014/01/entering-undertow-web-server.html
这篇关于为 Web 设置最大连接数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!