在 jboss7 中,如何设置 http 和 https 连接器的线程池大小。我正在使用standalone.xml 进行设置更改。谁能帮我。
提前致谢。
在 jboss7 中,如何设置 http 和 https 连接器的线程池大小。我正在使用standalone.xml 进行设置更改。谁能帮我。
提前致谢。
您可以像这样在standalone.xml 中添加 max-connections 属性:
[连接器名称="http" 协议="HTTP/1.1" 方案="http" 套接字绑定="http" max-connections="1000" /]
Take a look here http://www.mastertheboss.com/jboss-application-server/341-jboss-as-7-performance-tuning.html?start=3
您可以使用maxThreads
参数像这样配置它:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false" >
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" maxThreads="300" />
jBoss 站点的 API 文档:
maxThread:(int) 此池中的最大活动线程数,默认为 200
在您的独立 xml 中定义新的线程工厂和线程池执行器。有关详细信息,请参阅以下站点: https ://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html/Administration_and_Configuration_Guide/sect-Connector_Configuration.html
我有类似的问题,请参阅我的SO question and answer。