views:

2799

answers:

3

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

A: 

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.

Eineki
+1  A: 

Have a look at limitipconn module.

kgiannakakis
The above link is relevant for Apache 1.3. For Apache2, the link is http://dominia.org/djao/limitipconn2.html. Anyways I will try it.
Mohit Nanda
A: 

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.

blispr