Question

How to improve Server response time ?

Posted August 8, 2015 4.8k views
Ubuntu MySQL Server Optimization Joomla Networking CMS Applications

Since I switched to DO (AMS3) for my 8GB Droplet, the server response time is up to 3 times higher than it was with my previous hosting company.

Worst, in Google Webmaster Tools, I see that now Google takes between 500 and 600 milliseconds to download pages while before DO it was taking less than 200 consistently for the past few years.

Anything database driven seems to take longer. It looks like the time to first byte/responding to a query is much higher.

I use the same CDN as before, same applications too.

Any advice or someone knows where this could come from?
My CPU/RAM usages are really low, so I don’t think that upgrading to 16GB would help.

Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

3 answers

When you say 3 times higher, what figures are we actually talking here. Also, where was your server prior to it being with Digital Ocean and in what location?

As mentionned in my post, we’re talking from less than 200ms to an average of 600ms with DO in AMS3 for Google crawls.
Google page speed shows that a response time of 500ms on a WP site (which I and Google considered already not good) now ranges anywhere between 1.5 - 2.1 seconds! (which this time is an issue that absolutely needs to be addressed).
No, my previous host wasn’t Digital Ocean.

I have been getting “Reduce server response time” issues with the Pagespeed Insights tool.

To test whether it is due to DNS, slow PHP, Wordpress or hosting issue, I duplicated my website at Digitalocean and pasted it in Google Cloud - Google Compute Engine instance.

Problem solved! In Google Cloud I’m able to get faster server response times and pass the Pagespeed test with flying colors even with the smallest VPS in gcloud.

So it’s not due to PHP or Wordpress. Digitalocean server has server response time issues. The difference was between 300ms and 1s.

Submit an Answer