PDA

View Full Version : apc-php5-apache2-debian-etch


Thunderbirdsei
1st May 2008, 22:58
Alright, thanks for the howto. Did work like a charm. Afterwards I installed a Test-Joomla and run ab -kc 2 -t 30 http://localhost/joomla/

The result was somewhat sobering and I'm not really sure whether it's a environment issue (virtualbox, 1GB RAM and 2GHZ assigned), but I get very low figures:

Benchmarking localhost (be patient)
Finished 209 requests


Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80

Document Path: /joomla/
Document Length: 31812 bytes

Concurrency Level: 2
Time taken for tests: 30.109615 seconds
Complete requests: 209
Failed requests: 183
(Connect: 0, Length: 183, Exceptions: 0)
Write errors: 0
Keep-Alive requests: 0
Total transferred: 6758557 bytes
HTML transferred: 6648307 bytes
Requests per second: 6.94 [#/sec] (mean)
Time per request: 288.130 [ms] (mean)
Time per request: 144.065 [ms] (mean, across all concurrent requests)

Transfer rate: 219.20 [Kbytes/sec] received

I learned that the failed requests (Length) are 'normal' due the dynamic generation of content and different size of the results, but just 6.94 requests per second? Without APC it's only 3 something, so APC does have an effect .

Is something wrong?

Thunderbirdsei
2nd May 2008, 01:53
Ok, I installed Drupal and did the same test again, first without APC and then with APC:

Benchmarking localhost (be patient).....done


Server Software: Apache
Server Hostname: localhost
Server Port: 80

Document Path: /drupal/?q=node/add/page
Document Length: 3598 bytes

Concurrency Level: 2
Time taken for tests: 0.527818 seconds
Complete requests: 30
Failed requests: 0
Write errors: 0
Non-2xx responses: 30
Keep-Alive requests: 0
Total transferred: 122460 bytes
HTML transferred: 107940 bytes
Requests per second: 56.84 [#/sec] (mean)
Time per request: 35.188 [ms] (mean)
Time per request: 17.594 [ms] (mean, across all concurrent requests)
Transfer rate: 225.46 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 24 34 9.9 31 65
Waiting: 24 34 9.7 31 64
Total: 24 34 9.9 31 65

Percentage of the requests served within a certain time (ms)
50% 31
66% 32
75% 32
80% 34
90% 52
95% 62
98% 65
99% 65
100% 65 (longest request)


Benchmarking localhost (be patient).....done


Server Software: Apache
Server Hostname: localhost
Server Port: 80

Document Path: /drupal/?q=node/add/page
Document Length: 3598 bytes

Concurrency Level: 2
Time taken for tests: 0.143770 seconds
Complete requests: 30
Failed requests: 0
Write errors: 0
Non-2xx responses: 30
Keep-Alive requests: 0
Total transferred: 122460 bytes
HTML transferred: 107940 bytes
Requests per second: 208.67 [#/sec] (mean)
Time per request: 9.585 [ms] (mean)
Time per request: 4.792 [ms] (mean, across all concurrent requests)
Transfer rate: 827.71 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.3 0 9
Processing: 3 7 10.3 5 60
Waiting: 0 4 10.4 3 58
Total: 3 8 10.3 6 60

Percentage of the requests served within a certain time (ms)
50% 6
66% 8
75% 10
80% 11
90% 14
95% 14
98% 60
99% 60
100% 60 (longest request)


As you can see, there is a huge difference whether APC is enabled or not and it's tremendous faster than Joomla 1.5.

Can somebody confirm my results?

falko
2nd May 2008, 16:49
I think you can also try to optimize Apache: http://www.howtoforge.com/configuring_apache_for_maximum_performance