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:
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
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,
Compress cached pages,
Aggregate and compress CSS files,
I have the following modules installed: