Thanks again for the tests … I guess I must have done something wrong - Lighttpd webserver is fast especially with static files, so sending images should be easy for it (and my current average on the whole webserver is like 20 requests per second, 300 kbyte/s so I guess nothing terrible). When I run ab command with 30-50-100 concurrent users getting 1000 images, it serves like 4000 static images per second (but I admit, within the same 1gbps network, not from outside internet, havent measured that), so I do not see any harddrive or memory or configuration bottleneck … Might it be keep-alive ON causing this ? I’d say no, but who knows, I’ve learned the hard way that in IT the things are really working the exact opposite you expect it to
Can someone run the command
ab -c 20 -n 1000 http://forum.valka.cz/images10/homepage_icons/ico-01.png
againts my server from USA and let me know the result ? This is what I see when AB’ing the server from another quadcore machine within the same network :
ab -c 20 -n 1000 http://forum.valka.cz/images10/homepage_icons/ico-01.png
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking forum.valka.cz (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: lighttpd/1.4.19
Server Hostname: forum.valka.cz
Server Port: 80
Document Path: /images10/homepage_icons/ico-01.png
Document Length: 17933 bytes
Concurrency Level: 20
Time taken for tests: 0.391 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 18221000 bytes
HTML transferred: 17933000 bytes
Requests per second: 2559.37 [#/sec] (mean)
Time per request: 7.814 [ms] (mean)
Time per request: 0.391 [ms] (mean, across all concurrent requests)
Transfer rate: 45541.31 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 2
Processing: 1 1 4.6 1 72
Waiting: 0 0 2.0 0 46
Total: 1 1 4.6 1 72
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 1
100% 72 (longest request)
Repeated runs, same command
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking forum.valka.cz (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: lighttpd/1.4.19
Server Hostname: forum.valka.cz
Server Port: 80
Document Path: /images10/homepage_icons/ico-01.png
Document Length: 17933 bytes
Concurrency Level: 20
Time taken for tests: 0.186 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 18221000 bytes
HTML transferred: 17933000 bytes
Requests per second: 5363.51 [#/sec] (mean)
Time per request: 3.729 [ms] (mean)
Time per request: 0.186 [ms] (mean, across all concurrent requests)
Transfer rate: 95438.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 1 3 0.6 4 6
Waiting: 0 1 0.7 1 3
Total: 1 4 0.5 4 6
WARNING: The median and mean for the processing time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 4
66% 4
75% 4
80% 4
90% 4
95% 5
98% 5
99% 5
100% 6 (longest request)
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking forum.valka.cz (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: lighttpd/1.4.19
Server Hostname: forum.valka.cz
Server Port: 80
Document Path: /images10/homepage_icons/ico-01.png
Document Length: 17933 bytes
Concurrency Level: 20
Time taken for tests: 0.188 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 18301727 bytes
HTML transferred: 18012287 bytes
Requests per second: 5317.08 [#/sec] (mean)
Time per request: 3.761 [ms] (mean)
Time per request: 0.188 [ms] (mean, across all concurrent requests)
Transfer rate: 95031.08 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 1 3 1.0 3 8
Waiting: 0 1 0.8 1 5
Total: 1 4 1.0 4 8
Percentage of the requests served within a certain time (ms)
50% 4
66% 4
75% 4
80% 4
90% 5
95% 5
98% 6
99% 6
100% 8 (longest request)
I do not see any reason the static files shoud have this problem
Thanks alot for the help with this topic, I really appreciate it and Im happy to learn new stuff.