I just created a new Drupal 7 website and the loading time is too much. I checked with Speed Tracer from Google and here are the results for the first page:
URL http://mysite.com/
From Cache false
Method GET
Http Status 200
Mime-type text/html
Total Bytes
Request Timing @63757 ms for 3331 ms
Response Timing @67088 ms for 379 ms
Total Timing @63757 ms for 3710 ms
3710 ms is too much for loading a home page on a production site.
Does anyone have the same experience? What should I do to improve the speed?
One speed-related problem was in MySQL configuration file: my.cnf.
Now I have set the following variables for MySQL relative to InnoDB:
set-variable = innodb_buffer_pool_size=2M
set-variable = innodb_additional_mem_pool_size=500K
set-variable = innodb_log_buffer_size=500K
set-variable = innodb_thread_concurrency=2
set-variable = innodb_flush_log_at_trx_commit=0
So the site is fast now. However, sometimes for a reason I don't understand, the site is giving me a blank page when I load a page. After refreshing a couple times, the page will be displayed.
I am thinking that timeout setting for InnoDB could be the problem. What's your opinion?
Now I have an incredible waiting time here: 10760 ms on http://localhost/mysite/user:
URL http://localhost/mysite/user
From Cache false
Method GET
Http Status 200
Mime-type text/html
Total Bytes
Request Timing @12090ms for 10471ms
Response Timing @22561ms for 288ms
Total Timing @12090ms for 10760ms
There are some strange things because the problem is not with the Response Time of Drupal, which is 288 ms (reasonable I think) but the Request Time, which is 10471 ms
Why is the Request Time so long? And what causes this?
Here are my settings and modules:
APC installed/enabled and Cache pages for anonymous users, Cache blocks, Compress cached pages, Aggregate and compress CSS files, Aggregate JavaScript files all enabled
I have the following modules installed:
- blockify
- ctools
- google_analytics
- i18n
- languageicons
- metatags_quick
- nice_menus
- omega_tools
- page_title
- pathauto
- site_map
- token
- variable
- views
- webform
- wysiwyg
- xmlsitemap
set-variable =when setting variables in my.cnf. Justinnodb_buffer_pool_size = 2Mis enough. Otherwise, MySQL will not start. – marcvangend May 4 '12 at 20:13