I have a WordPress website and it loads extremely slow. It is on AWS and when I connect to instance and command type top everything looks fine except in cloudwatch it spikes to 100% CPU Utilization.
When I click on a link on the website the .php-fpm.bin reaches %CPU that it shows when I run the command ‘top’ is between 20-22% and 4 or 5 of them are running which it shows as to reach 100% and that’s when clicking on only 1 link.
How can I fix this and improve load time of website.
It is currently on t1.micro, I could upgrade instance but it should work fine on this. I know a couple people who are also hosting website on t1.micro instance and it works perfectly fine. I couldn’t get them to help me out with it though.
I have checked all plugins and activated and deactivated all one by one and currently only plugins required are active. There are currently no cache plugins or anything like that as I am just sorting out the settings for W3 Total Cache.
I hope someone can help me out with this please
Thanks in advance.
Try to switch to the default
WP Twenty Fourteen
theme and see it the loading time is better, if it is – then the problem is with your theme.Check for meaningless functions or
curl
calls in theme’sfunctions.php
file (if it iswarez
theme). Also check your theme’sstyle.css
file and observe if you use URL of backgrounds which come from different domain or if the theme import external style-sheets with@import
rule.In my opinion, T1 micro instances are just to small for website hosts. Their performance is variable, memory low and there is no guaranteed, amount of CPU reserved for you.
This page outlines how and when AWS will purposefully reduce the performance of T1-Micro instances:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts_micro_instances.html
Simplest fix is to upgrade to a larger instance.
If you’re using W3 Total Cache try disabling (if you’ve turned on) the “Object Cache” feature