Menu

Limiting connections per VirtualHost

Herman
2018-03-05
2018-03-06
  • Herman

    Herman - 2018-03-05

    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

     
    • Herman

      Herman - 2018-03-06

      I read the documentation some more ... seems you cant use the above for name based virtualhosts.
      Any idea how to make it work?

       
  • Pascal Buchbinder

    not quite what you want, but maybe you want to use

    QS_LocRequestLimitDefault 200
    

    instead

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.