I have installed LAMP on Ubuntu 14.04.5 LTS on Digital Ocean Server. The issue I am facing from last two weeks is:
The site becomes too slow(or say does not load for 5 minutes) at irregular intervals. Every 5 to 15 minutes the site becomes unbearably slow.
After analyzing a lot of things I came to the conclusion that it's a DNS issue. I think so because when I accessed the site directly with IP Address, I did not face any such issue.
I have tried following these two links:
The issue persists even after updating Ubuntu as suggested in the second link. I have also enabled Cloudflare but the problem persists.
How to deal with this issue ? Thanks in advance.