I'm trying to limit the number of connections per virualhost in my Apache 2.4 implementation.
My Apache server parameters are ...
ServerLimit 110
StartServers 10
MinSpareThreads 250
MaxSpareThreads 500
ThreadsPerChild 25
MaxRequestWorkers 2500
MaxConnectionsPerChild 1000
Within each VirtualHost definition I have ...
QS_SrvMaxConn 200
The qos web overview is ...
overview
connections: 31 load: 0.01
The qos web base parameters ...
connections
free ip entries 2500
current connections 0
total connections 31
connection settings
max connections -
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
The first two qos status web virtual host parameters ...
aaa.com:443 (virtual)
connections
free ip entries 2500
current connections 0
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
aaa.com:80 (virtual)
connections
free ip entries 2500
current connections 0
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
The rest of the virtual hosts parameters look like the first two, except for the second last and last virtual hosts whch look like ...
zzz.com:443 (virtual)
connections
free ip entries 2500
current connections 1
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
zzz.com:80 (virtual)
connections
free ip entries 2500
current connections 29
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
It seems as if "all" the "current connections" only get allocated to the last virtual host. I confirmed this by removing the last virtual. The "current connections" were again only added to the new last virtual host.
I've probably missed something obvious.
Let me know where I've gone wrong.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi...
I'm trying to limit the number of connections per virualhost in my Apache 2.4 implementation.
My Apache server parameters are ...
ServerLimit 110
StartServers 10
MinSpareThreads 250
MaxSpareThreads 500
ThreadsPerChild 25
MaxRequestWorkers 2500
MaxConnectionsPerChild 1000
Within each VirtualHost definition I have ...
QS_SrvMaxConn 200
The qos web overview is ...
overview
connections: 31 load: 0.01
The qos web base parameters ...
connections
free ip entries 2500
current connections 0
total connections 31
connection settings
max connections -
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
The first two qos status web virtual host parameters ...
aaa.com:443 (virtual)
connections
free ip entries 2500
current connections 0
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
aaa.com:80 (virtual)
connections
free ip entries 2500
current connections 0
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
The rest of the virtual hosts parameters look like the first two, except for the second last and last virtual hosts whch look like ...
zzz.com:443 (virtual)
connections
free ip entries 2500
current connections 1
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
zzz.com:80 (virtual)
connections
free ip entries 2500
current connections 29
connection settings
max connections 200
max connections with keep-alive -
max connections per client ip -
min. data rate (bytes/sec) (min/max/current) -
It seems as if "all" the "current connections" only get allocated to the last virtual host. I confirmed this by removing the last virtual. The "current connections" were again only added to the new last virtual host.
I've probably missed something obvious.
Let me know where I've gone wrong.
Thanks
I read the documentation some more ... seems you cant use the above for name based virtualhosts.
Any idea how to make it work?
not quite what you want, but maybe you want to use
instead