开发者

How can I restrict number of Concurrent users on JBoss 4.0.4

Jboss 开发者_开发知识库4.0.4 GA Apache 2.2


Depends on how you want to handle the case when the limit is reached: Show a "please wait" page? Drop the connection? Hold the connection in a queue? I'd suggest to focus on:

1) Application / framework specific 2) acceptCount 3) maxThreads

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html


It is probably better to reject the sessions at the front end (Apache 2.2 has a few modules to limit session count)


OK, not very sure, but some googling led me to this:
Inside JBOSS_HOME\server\default\deploy\jboss-web.deployer\server.xml, look for the following. Connector port="8080" address="${jboss.bind.address}" maxThreads="250" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"
Modify the maxThreads parameter. Hopefully this would do the job.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜