Limit to x KB/sec doesn't work

  • Alexander Skwar

    Alexander Skwar - 2012-05-23


    Trying to get to grips with mod_qos, I used the Sample Configuration from "". I'd like achieve, that requests from a certain location are only sent with a certain amount of KB per seconds.

    In my Apache configuration, I've got the following:

    QS_LocKBytesPerSecLimit /qos 1
    QS_LocRequestLimit /qos 1
    <Location /qos>
      Order Allow,Deny
      Allow from all
      Deny from

    What I'd like achieve with this is, that files downloaded from "/qos" are only sent with 1 kb/sec; ie. VERY slow. BUT:

    --2012-05-23 14:43:48--
    Auflösen des Hostnamen » («...
    Verbindungsaufbau zu (||:80... verbunden.
    HTTP-Anforderung gesendet, warte auf Antwort... 
      HTTP/1.1 200 OK
      Date: Wed, 23 May 2012 12:43:52 GMT
      Server: Apache/2.2.16 (Debian) DAV/2 PHP/5.3.3-7+squeeze9 with Suhosin-Patch mod_ssl/2.2.16 OpenSSL/0.9.8o mod_qos/10.5
      Last-Modified: Wed, 23 May 2012 11:48:36 GMT
      ETag: "335a2c7-6ac88-4c0b2b721cd00"
      Accept-Ranges: bytes
      Content-Length: 437384
      Keep-Alive: timeout=15, max=100
      Connection: Keep-Alive
      Content-Type: text/plain
    Länge: 437384 (427K) [text/plain]
    In »»400K.51«« speichern.
    100%[======================================>] 437'384     --.-K/s   in 0.08s   
    2012-05-23 14:43:48 (5.22 MB/s) - »»400K.51«« gespeichert [437384/437384]

    As you can see there, the file was downloaded with 5 MB/s. In the Apache logs, there's this then:

    ==> access.log <== - - [23/May/2012:14:43:52 +0200] "GET /qos/400K HTTP/1.1" 200 437773 "-" "Wget/1.13.4 (linux-gnu)"
    ==> error.log <==
    [Wed May 23 14:45:01 2012] [warn] [client] mod_qos(052): byte rate limit, rule: /qos(1), kbytes/sec=15, delay=3700ms

    I notice, that if I "hammer" my server (below), every single request is very fast, but there's some sort of delay in between.

    Is this the way it's supposed to be?

    while :; do wget -S; done



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks