限制Apache2中的并发连接数

时间:2022-10-05 18:25:38

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

4 个解决方案

#1


Have a look at limitipconn module.

看看limitipconn模块。

#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

也许你可以使用指令MaxClients和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.

因此,所有应用程序都被管理 - 我们在群集中有多个apache服务器。

We were not using the Zend clustering stuff , IMO.

我们没有使用Zend集群的东西,IMO。

#4


Sure thing:

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

and you can find a debian package too

你也可以找到一个debian软件包

libapache2-mod-bw

#1


Have a look at limitipconn module.

看看limitipconn模块。

#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

也许你可以使用指令MaxClients和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.

因此,所有应用程序都被管理 - 我们在群集中有多个apache服务器。

We were not using the Zend clustering stuff , IMO.

我们没有使用Zend集群的东西,IMO。

#4


Sure thing:

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

and you can find a debian package too

你也可以找到一个debian软件包

libapache2-mod-bw