I've build a website using Drupal 7 (7.34 now) and used quite a lot of modules (CiviCrm, Views, Panels, Webform, etc). I recently put this site live at my hosting provider and now I'm experiencing huge variations in page load times (Time to first byte).
When I enable caching for anonymous users, the page load times are pretty stable (200ms). But when I turn of caching the load times are varying from 1.5 sec to 30 seconds. These huge variations seems to come in periods over time,with a couple of minutes interval.
I've already tried several things to find the problem:
- My first suspicion was the performance of my hosting provider, but I'm pretty sure this is not the problem. I've created a PHP benchmark script and executed this while the responses for my website were slow. But the benchmark did still return the same results.
- I've used the Profiling module to see if I could find a bottle neck, but it looks like all things are taking more time and not only 1 part.
- I've used the Devel module to check the SQL queries, but there wasn't any taking a longer time then normal, when I experienced the slow response.
- I've disabled the Update manager, as this could stall page loads, but without success.
- I've checked for not properly (un)installed modules, but they are all OK.
It is also not related to any specific page, but all page requests are slowed down when it happens. I never saw any (PHP )error and finally the page will always load properly, but only with a huge delay.
When the slow down period occures, it looks like there is something holding up every page request. Maybe some locks on something??
As the site also has to perform for users logged in, caching for anonymous users is not a good solution. Of course there are several other caching solutions possible for logged in users, but I want to solve the cause of this problem. And not using work-arounds....
Can anyone advise me or has suggestions to find and solve this problem?