Created
June 2, 2009 17:44
-
-
Save bturnbull/122387 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# apache tuned to just exhaust memory under load with mri | |
# | |
# ree shows system savings of ~60 MB over mri with 4 concurrent requests under light load | |
# for approx 23% decrease in memory usage | |
# | |
# free/swap idle -- 272008 / 30288 | |
# free/swap ree -- 71812 / 30288 | |
# free/swap idle -- 271748 / 30284 | |
# free/swap mri -- 12908 / 32324 | |
# free/swap idle -- 299452 / 30620 | |
# | |
# mods-available/passenger-ee.* -- REE passenger and ruby | |
# mods-available/passenger.* -- MRI passenger and ruby | |
# | |
root@dev:/etc/apache2/mods-enabled# /etc/init.d/apache2 stop | |
* Stopping web server apache2 | |
... waiting ...done. | |
root@dev:/etc/apache2/mods-enabled# rm passenger.conf passenger.load; ln -s ../mods-available/passenger-ee.conf passenger.conf; ln -s ../mods-available/passenger-ee.load passenger.load | |
root@dev:/etc/apache2/mods-enabled# free | |
total used free shared buffers cached | |
Mem: 368836 96828 272008 0 2768 41216 | |
-/+ buffers/cache: 52844 315992 | |
Swap: 364536 30288 334248 | |
root@dev:/etc/apache2/mods-enabled# /etc/init.d/apache2 start | |
* Starting web server apache2 | |
...done. | |
root@dev:/etc/apache2/mods-enabled# ab -n 200 -c 4 http://dev.brianturnbull.com/documents | |
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 dev.brianturnbull.com (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Finished 200 requests | |
Server Software: Apache/2.2.11 | |
Server Hostname: dev.brianturnbull.com | |
Server Port: 80 | |
Document Path: /documents | |
Document Length: 58667 bytes | |
Concurrency Level: 4 | |
Time taken for tests: 11.793 seconds | |
Complete requests: 200 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 11850800 bytes | |
HTML transferred: 11733400 bytes | |
Requests per second: 16.96 [#/sec] (mean) | |
Time per request: 235.853 [ms] (mean) | |
Time per request: 58.963 [ms] (mean, across all concurrent requests) | |
Transfer rate: 981.38 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 100 235 283.7 202 2171 | |
Waiting: 100 234 283.6 202 2170 | |
Total: 100 235 283.8 202 2171 | |
Percentage of the requests served within a certain time (ms) | |
50% 202 | |
66% 206 | |
75% 212 | |
80% 215 | |
90% 235 | |
95% 278 | |
98% 2125 | |
99% 2149 | |
100% 2171 (longest request) | |
root@dev:/etc/apache2/mods-enabled# free | |
total used free shared buffers cached | |
Mem: 368836 297024 71812 0 2816 41340 | |
-/+ buffers/cache: 252868 115968 | |
Swap: 364536 30288 334248 | |
root@dev:/etc/apache2/mods-enabled# /etc/init.d/apache2 stop | |
* Stopping web server apache2 | |
... waiting ...done. | |
root@dev:/etc/apache2/mods-enabled# rm passenger.conf passenger.load; ln -s ../mods-available/passenger.conf passenger.conf; ln -s ../mods-available/passenger.load passenger.load | |
root@dev:/etc/apache2/mods-enabled# free | |
total used free shared buffers cached | |
Mem: 368836 97088 271748 0 2844 41260 | |
-/+ buffers/cache: 52984 315852 | |
Swap: 364536 30284 334252 | |
root@dev:/etc/apache2/mods-enabled# /etc/init.d/apache2 start | |
* Starting web server apache2 | |
...done. | |
root@dev:/etc/apache2/mods-enabled# ab -n 200 -c 4 http://dev.brianturnbull.com/documents | |
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 dev.brianturnbull.com (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Finished 200 requests | |
Server Software: Apache/2.2.11 | |
Server Hostname: dev.brianturnbull.com | |
Server Port: 80 | |
Document Path: /documents | |
Document Length: 58667 bytes | |
Concurrency Level: 4 | |
Time taken for tests: 14.824 seconds | |
Complete requests: 200 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 11850800 bytes | |
HTML transferred: 11733400 bytes | |
Requests per second: 13.49 [#/sec] (mean) | |
Time per request: 296.484 [ms] (mean) | |
Time per request: 74.121 [ms] (mean, across all concurrent requests) | |
Transfer rate: 780.69 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 108 295 687.6 196 5392 | |
Waiting: 108 294 687.6 196 5392 | |
Total: 108 295 687.6 196 5392 | |
Percentage of the requests served within a certain time (ms) | |
50% 196 | |
66% 201 | |
75% 204 | |
80% 208 | |
90% 252 | |
95% 497 | |
98% 4619 | |
99% 5376 | |
100% 5392 (longest request) | |
root@dev:/etc/apache2/mods-enabled# free | |
total used free shared buffers cached | |
Mem: 368836 355928 12908 0 296 11668 | |
-/+ buffers/cache: 343964 24872 | |
Swap: 364536 32324 332212 | |
root@dev:/etc/apache2/mods-enabled# /etc/init.d/apache2 stop | |
* Stopping web server apache2 | |
... waiting ...done. | |
root@dev:/etc/apache2/mods-enabled# free | |
total used free shared buffers cached | |
Mem: 368836 69384 299452 0 516 15196 | |
-/+ buffers/cache: 53672 315164 | |
Swap: 364536 30620 333916 | |
root@dev:/etc/apache2/mods-enabled# uname -a | |
Linux dev.brianturnbull.com 2.6.18.8-x86_64-linode1 #1 SMP Thu Apr 10 11:20:13 EDT 2008 x86_64 GNU/Linux | |
root@dev:/etc/apache2/mods-enabled# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment