Whenever I open my drupal site for the first time it seems to be very slow loading. However, immediately afterward all pages load with excellent speed performance. Any ideas?

Jeff

Comments

vm’s picture

caching enabled?

how slow is "very slow loading" ?

any specific page, or all pages?

webservant316’s picture

As far as I can tell it is any page after I've been idle for some time for example over night or not clicking on my site for 30+ minutes. When I come back to the site the first page and maybe a few pages after take 5-15 seconds to load. However, after getting through the first and sometimes the 2nd and 3rd pages then all the pages load in less than a second. It almost seems like Drupal needs a couple of wake up hits before it is ready to move fast. Could this be a webhosting process scheduler priority thing?

caching mode: normal
minimum cache life: none
page compression: enabled
block cache: disabled (because I have modules defining content access restrictions)
optimize css: enabled
optimize javascript: enabled

Webhost = ixwebhosting

Devel output for my home page = http://www.prwa.com/v2/Drupal_01.pdf

Thanks for any futher ideas,

Jeff

Anyone who gives another a cold cup of water certainly will not lose his reward!

vincent sg’s picture

I suspect that this is due to your browser or add-ons.

My browser tends to stop loading somewhere around line 64. By loading another website in another tab or window, the existing Drupal site will load immediately. I realised that disabling add-ons reduces the number of such incidents.

Try disabling add-ons. Do not disable security add-ons.
Or, try using another version of the browser.

lelizondo’s picture

same case here, I'm running a site on a VPS and I just installed memcached, the first page takes about 9-11 seconds to load, after that every page it's really fast, less than a second. Tried this with safari (no add ons), chrome and firefox (lots of add ons) and the same result for all browsers.

Luis

Yuki’s picture

Same here

jjbell’s picture

Same here

vako’s picture

try the Boost module. hopefully it will help.

jiakomo’s picture

I am having the same symptoms with a drupal 7 install. It looks like after the first very slow wake up hit (10+ seconds), everything turns to normal. Cahing is disabled.

I have found similar posts by other users but not a solution. Did you ever find a cure for this?

webservant316’s picture

I am not sure all the things that changed between my initial post and now. However, we have increased the resources in our VPS plan and most recently installed Litespeed instead of Apache with immediate performance increases.

Anyone who gives another a cold cup of water certainly will not lose his reward!

colan’s picture

In Drupal 7, this is generally caused by the default cron settings. It would be best to disable this, and run it externally. See Improving Drupal 7 performance after a period of inactivity for details.