apache 限制 Apache2 中的并发连接数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/450606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Limit number of concurrent connections in Apache2
提问by M.N
Is there a way I can limit the number of concurrent connections to the Web Application running on my Apache Server.
有没有一种方法可以限制在我的 Apache 服务器上运行的 Web 应用程序的并发连接数。
My server version is Apache 2.2.11
我的服务器版本是 Apache 2.2.11
回答by kgiannakakis
Have a look at limitipconnmodule.
看看limitipconn模块。
回答by blispr
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.
所以这一切都是由应用程序管理的——我们在一个集群中有多个 apache 服务器。
We were not using the Zend clustering stuff , IMO.
我们没有使用 Zend 集群的东西,IMO。
回答by Toe Knee
Sure thing:
肯定的事:
http://apache.ivn.cl/#bandwidth
http://apache.ivn.cl/#bandwidth
and you can find a debian package too
你也可以找到一个 debian 包
libapache2-mod-bw
libapache2-mod-bw
回答by Eineki
I'm not sure if it will useful to you but definitely worth a chance.
我不确定它是否对您有用,但绝对值得一试。
Maybe you can use the directives MaxClientsand ListenBackLog
也许你可以使用指令 MaxClients和 ListenBackLog
Although they apply to the concurrent access to the entire server, not only your application, and on a resource base.
尽管它们适用于对整个服务器的并发访问,不仅是您的应用程序,而且是基于资源的。

