Limit number of concurrent connections in Apache2

无人久伴 提交于 2020-01-13 08:28:23

问题


Is there a way I can limit the number of concurrent connections to the Web Application running on my Apache Server.

My server version is Apache 2.2.11


回答1:


Have a look at limitipconn module.




回答2:


I'm not sure if it will useful to you but definitely worth a chance.

Maybe you can use the directives MaxClients and ListenBackLog

Although they apply to the concurrent access to the entire server, not only your application, and on a resource base.




回答3:


We completely built an application layer thing that stored, checked and restricted the limit on # of application users that could be logged on concurrently.

If it got exceeded, we sent them to a 'waiting room' - worked like a charm.

So it was all application managed - we had multiple apache servers in a cluster.

We were not using the Zend clustering stuff , IMO.




回答4:


Sure thing:

http://apache.ivn.cl/#bandwidth

and you can find a debian package too

libapache2-mod-bw



来源:https://stackoverflow.com/questions/450606/limit-number-of-concurrent-connections-in-apache2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!