I have 2 quite similar servers
1) i7-930 8 cores 2,8GHz, RAM 12M, Deban Lenny / Apache 2.2.9 / PHP2.17 / Virtualmin / APC / Cacherouter
CPU load averages 0.1 (1 min) 0.1 (5 mins) 0.13 (15 mins)
Real memory 11.75 GB total, 2.62 GB used
Internet connexion 1GB/sec
about 10 D6 sites with limited traffic
http://web2.see.asso.fr/phpinfo
http://web2.see.asso.fr/apc
2) i7-920 8 cores 2,67GHz, RAM 24M, Ububuntu 10.04 / Apache 2.2.14 / PHP5.3.2 / Virtualmin
CPU load averages 0.02 (1 min) 0.03 (5 mins) 0.05 (15 mins)
Real memory 23.58 GB total, 2.55 GB used
Internet connexion 100MB/sec
only one experimental D7 but holds BBB and Apache Solr
http://www.b2mml-services.com/phpinfo.php
AB Results server 1
ab -c10 -n500 http://www.iradje.com/
Test duration seconds = 150
Transfer rate Kbytes/sec = 388
Requests per sec = 3.3
AB Results server 2
ab -c10 -n500 http://b2mml-services.com/
Test duration seconds = 2
Transfer rate Kbytes/sec = 2000
Requests per sec = 250
I suspect a misconfiguration of MySQL, so I attached the my.cnf files and the actual values of Mysql variables
I tuned it for (1), with high numbers everywhere as I have plenty of memory, I did not touch anything on the second one
I would appreciate help and advices.
Thanks
| Attachment | Size |
|---|---|
| my.cnf2_.txt | 828 bytes |
| my.cnf1_.txt | 4.5 KB |
| myVariables1.txt | 6.49 KB |
| myVariables2.txt | 7.52 KB |

Comments
Monitor it !
Hi jvieille, when you say its slow can you give more details ?
Is one particular page or section of the site slow ?
Is the whole site slow ?
Was the performance ok once and its just gone slow or has something happened ?
Has the traffic increase ?
You might want to look at putting something like Munin (http://munin-monitoring.org/) on your server which will measure there performance of the servers and the apps so you can get a better picture of what is happening, ab's just give a one of snap shot in time ?
What version of mysql you running ? which database engine are you running ? if mysql is your problem you might want to look at 5.5 much better suited fore multi cores and just performances a whole lot better than 5.1
Cheers Nick
Wonderin about the 1/100 speed ratio between servers
I am not actually complaining much about absolute slowness, just wondering why there is a 1/100 request speed factor between similar servers holding low traffic site.
So I dream about faster websites...
The 2 servers run MySQL 5.1 - just upgraded recently the Debian which was installed with 5.0
The D7 web site on (2) uses Innodb, the D6 sites on (1) Mysam
These are the Munin reports of both servers
http://188.165.208.179/munin/index.html
thanks
There doesn't seem to be any
There doesn't seem to be any caching on the first site. It could definitely benefit enormously from caching for anonymous users. The site is taking around 1.5 seconds to load the front page, and most other pages I tried to visit.
You can use devel to get a list of the queries on a page load, and the time they take. You can also setup xhprof and profile the page to see where time is being spent.
I don't see either a reason why either of the servers would be slow based on munin.
Do you see any reason caching
Do you see any reason caching seems ineffective?
- Drupal is in normal caching mode
- APC is installed and running
- Cacherouter uses APC, is set for the tables that accept external caching (very poor documentation for this module...)
- Enormous caches are set for MySQL
- Search by Apache Solr on another server
what can be wrong, what should I do?
Thanks for taking care
Something to do with my
Something to do with my Drupal installs definitely!
I ran AB on 2 different sites on the same server
- the first on an empty Drupal site, in maintenance mode - the least we can do with a Drupal site...
- the second on a non Drupal, pure html site
Below the results of the test:
Server (1) - Empty Drupal in maintenance mode
root@ks311625:~# ab -c50 -n500 http://www.8895b2mml.net/
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 www.8895b2mml.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests
Server Software: Apache/2.2.9
Server Hostname: www.8895b2mml.net
Server Port: 80
Document Path: /
Document Length: 4625 bytes
Concurrency Level: 50
Time taken for tests: 135.913 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Non-2xx responses: 500
Total transferred: 2650500 bytes
HTML transferred: 2312500 bytes
Requests per second: 3.68 [#/sec] (mean)
Time per request: 13591.264 [ms] (mean)
Time per request: 271.825 [ms] (mean, across all concurrent requests)
Transfer rate: 19.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 9
Processing: 8419 13435 987.3 13576 17058
Waiting: 8419 13434 987.2 13576 17058
Total: 8420 13435 987.3 13576 17059
Percentage of the requests served within a certain time (ms)
50% 13576
66% 13868
75% 14010
80% 14116
90% 14406
95% 14581
98% 15057
99% 15669
100% 17059 (longest request)
Server (2) - Dreamweaver site
root@ks311625:~# ab -c50 -n500 http://www.isa-france.org/
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 www.isa-france.org (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests
Server Software: Apache/2.2.9
Server Hostname: www.isa-france.org
Server Port: 80
Document Path: /
Document Length: 780 bytes
Concurrency Level: 50
Time taken for tests: 0.105 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 591000 bytes
HTML transferred: 390000 bytes
Requests per second: 4777.79 [#/sec] (mean)
Time per request: 10.465 [ms] (mean)
Time per request: 0.209 [ms] (mean, across all concurrent requests)
Transfer rate: 5514.98 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 2 10 1.6 10 12
Waiting: 2 10 1.6 10 12
Total: 3 10 1.5 10 13
Percentage of the requests served within a certain time (ms)
50% 10
66% 10
75% 11
80% 11
90% 11
95% 12
98% 12
99% 12
100% 13 (longest request)
Trying Boost: Wahoo!
root@ks311625:~# ab -c50 -n500 http://web2.see.asso.fr/
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 web2.see.asso.fr (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests
Installing boost, i got a 136s/0,56s improvement to complete the test: almost 250 times faster...
(OK, this is for anonymous)
How can't Drupal be set like this by default?
Server Software: Apache/2.2.9
Server Hostname: web2.see.asso.fr
Server Port: 80
Document Path: /
Document Length: 82333 bytes
Concurrency Level: 50
Time taken for tests: 0.560 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 41519373 bytes
HTML transferred: 41248833 bytes
Requests per second: 892.41 [#/sec] (mean)
Time per request: 56.028 [ms] (mean)
Time per request: 1.121 [ms] (mean, across all concurrent requests)
Transfer rate: 72367.99 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.2 1 2
Processing: 9 53 18.4 53 258
Waiting: 1 43 9.5 45 57
Total: 10 54 18.3 54 259
Percentage of the requests served within a certain time (ms)
50% 54
66% 57
75% 59
80% 59
90% 61
95% 62
98% 66
99% 69
100% 259 (longest request)
I'd personally also add
I'd personally also add memcache to the mix for when pages need to be re-generated and are out of the boost cache. Adding varnish, too is also an option.
But I think you have some process in there that is delaying the page load as I can't see page waiting times of 1.5s on any installation even with many many modules installed (normally number one problem for slowness on drupal).
So: Check your modules.
Easiest is to use xdebug and see what function is taking so long ...
Thanks and Best Wishes,
Fabian
Devel and XHProf reports
Thanks for looking at this.
I have installed devel and XHProf
As admin - no caching I guess, when checking the home page (Panel) http://web2.see.asso.fr/
devel indicates:
Executed 734 queries in 88.43 milliseconds. Queries taking longer than 5 ms and queries executed more than once, are highlighted. Page execution time was 1831.52 ms.only 2 queries were above 1 ms
XHProf output is there:
http://xhprof.shareontheweb.com//index.php?run=4e3be47534ba5&source=SEE
Another test with a Views page http://web2.see.asso.fr/node/all/event_see
Executed 594 queries in 100.6 milliseconds. Queries taking longer than 5 ms and queries executed more than once, are highlighted. Page execution time was 1834.4 ms.1 query >1ms
http://xhprof.shareontheweb.com//index.php?run=4e3bec11e1e21&source=SEE
But I don't know what to do with that... many functions taking time.
Apart of changing the site to do and display simple dumb things, what else could be wrong?
Curious about your opinion...
Looks like it is hanging in
Looks like it is hanging in the php excecution part.
More suggestions
Stumbled across this today on LinkedIn, has a plethora of suggestions in addtion to the road you are already on with Boost.
http://www.morningtime.com/Drupal-6x-Performance-Guide/513