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's functions.php file (if it is warez theme). Also check your theme's style.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
Related
when i upload an image in wordpress media library this message appears
post-processing of the image failed likely because the server is busy or does not have enough resources. uploading a smaller image may help. suggested maximum size is 2500 pixels.
i have tried some methods to solve it like increase Maximum upload file size and change php version
I'm using hostGator as a web host .
use wp filter
add_filter( 'big_image_size_threshold', '__return_false' );
I faced the same issue and in my case it was related to nginx
413 Error response
Request Entity too large
and yes image was more than 2M by default in NGinx configuration
client_max_body_size 2M; -> client_max_body_size 64M;
should be set in server or location section of .conf file
Wordpress was running in docker compose and that was the root cause
If this error occurs on your Local by Flywheel desktop app I was able to fix it by changing the web server from nginx to Apache.
What fixed this error for me was updating an image related plugin called Images to WebP from version 1.9 to the latest which is 4.1 at the time of writing. And everything worked just fine afterwards. I found the solution here https://support.nova.bi/d/3-wordpress-error-while-uploading-images. I had tried everything including increasing PHP allocated memory, restarting my server, checking Wordpress permissions, modifying current theme functions.php file... but nothing worked. Only after I updated the plugin the upload worked again.
Hope this helps someone.
There are a few solutions to this issue. First, are you running PHP 7.3 and WordPress 5.3? You may try downgrading to PHP 7.2.
Next, you may try increasing your site’s memory limit.
If neither of these works you may attempt to work around it.
Go to your media library and select any picture. Preferably one that you managed to upload successfully. Click Edit and look at where the picture is located. keep this open or remember it.
Connect to your server via an FTP client and navigate to this folder where your images are stored. Upload your large photographs to this folder.
They won’t show up in your media library yet. You need to use a plugin called 'Add From Server'. Download that and install/activate it (by Dion Hulse).
Backup your WordPress installation (just in case).
Finally, hover over Media and then select the new option = Add From Server
Navigate to the folder where you uploaded your photos. Make sure you select just the photos you want to import into your Media Library (although you could delete the duplicates if you make a mistake).
After you click go, it’ll take some time, but don't cancel it or refresh the page. Just wait, and you’ll get a notification on the same screen when it's done. Along with a new list of imported files (including size variations if applicable).
Now your photos will be in your media library with ‘scaled’ at the end. You can now use these in your posts and they will work just fine.
NOTES
The files are imported to wherever you select them from. So it’s important that you put them in the same folder as the rest of your active pictures BEFORE you import them. Otherwise, they’ll show up in the media library, but won’t actually work on your website (took a while to figure this out).
I’d recommend importing 10-15 pictures at a time if they are large. Any more and you risk being signed out of your cPanel due to inactivity and it may break your installation (maybe, hence the backup).
Also, you may look through this wordpress.org thread as many solutions are discussed in the thread. https://wordpress.org/support/topic/unable-to-upload-images-67/page/5/
Let me know if this helps!
I just moved a Wordpress site from one URL to the other. The website itself seems to work fine except when I try to login via /wp-admin I get the following error:
Fatal error: Allowed memory size of 100663296 bytes exhausted (tried
to allocate 122880 bytes) in
/home/deb52080/domains/r2blog.nl/public_html/wp-admin/includes/media.php
on line 2840
I allready run some tests by disabling a plugin and that seemed to have solved the problem (except that I need this plugin and I use it all the time). But the moment I clicked one a function from any other plugin I get the same error.
Hope somebody is able to help me. These are plugins that I use regularly (Smart Slider 3 and Fusion Builder from the Avada thema) and they never give any problem.
Did you happen to move your new site to Siteground as the host? There is a known conflict between the Avada theme and Siteground.
The suggested workaround is to simply go to the Avada menu in the admin panel, choose Register and then remove your API key and save it as blank. Be warned that doing so will eliminate the automatic theme updates Avada provides.
If that doesn't work this thread from the Avada community site provides some solutions on how to increase your memory limit in the wp-config file:
https://theme-fusion.com/forums/topic/fatal-error-allowed-memory-size-of-805306368-bytes-exhausted-tried-to-allocate/
My Wordpress is extremely slow due to a request I have. I tried removing some plugins but no luck. I am using WP-rocket for caching.
Here is my analysis on pingdom where it says a request with xxxx/?version=4.7.3 is slowing down everything
How can I resolve this?
Many thanks
Turn off all caching while you are testing. Disable all plugins and see if is still there. If it is still there, it might be from the theme. Switch to another theme and test again. If it was gone after deactivating all plugins, turn them on one by one and test again to see which one adds it.
Another thing to do is to download your whole folder of your site on your computer and then using a free grep program to search for the domain name dentiste-urgence.ca and see if it is mentioned in any files.
This might also be caused by malware. Install the free security plugin WordFence and scan your site for malware.
I have been building an eshop website with woocommerce and i am using Zerif-Lite theme on Xampp Localhost. But it runs very slowly when i click a link, it needs like 5-7 seconds to load and on eshop page it needs 30 seconds(all products). What is the problem? Is this a localhost or theme issue? I also use wordfence Falcon engine cache. I have 27 active plugins. How can i fix that? If i upload the website to a live host will it be faster? I am optimizing my images with wp-smash. Do you suggest me disable Falcon engine cache and download w3 Total cache plugin?
I had similar problems running my localhost website from a usb, for me what turned it into a website with normal response times again was using UwAmp http://www.uwamp.com/en/?page=download. Also used a USB 3.0 Flash Drive, not sure how much difference that made.
Hope this helps.
I usually use this free plugin called P3 (Plugin Performance Profiler) which scans and give a detailed load-time for plugins,theme and DB, It is very useful and simple. you can find the plugin/theme/DB which is causing the issue and find alternative for that.
I have just launched the website - exactabacussoftware.com built with a custom theme in wordpress.
I noticed that the page load time was stupidly slow and when I checked the results with pingdom I could see that a lot of the analysis was duplicated and I'm not sure why this is or even if it is whats causing the site to load so slowly.
I haven't yet integrated a cache plugin which I intend to do but regardless of this I cannot see why this page loads for around 24 secs.
The entire site loads properly except for the blog page -
http://tools.pingdom.com/fpt/#!/cEmMjD/http://www.exactabacussoftware.com/blog
Server Spec:
Windows server 2008R2
IIS version 7.5
PHP version 5.3.19
Anyone got any ideas as to why this page is loading so slow?
here is the test sites result aswell for comparison -
http://tools.pingdom.com/fpt/#!/bw4JTo/wp-eas.exact3ex.co.uk
The only code changes have been the rewrites to the URL's
Over to you guys...
I think the issue is with a custom theme.
Try doing this steps:
Remove all active widgets
Uninstall all plugins
Check loading time - if not improved it's an issue with custom theme.
One more thing to do (to check if it's not the host issues) - activate default wordpress theme and check average loading speed, if speed is not improved try to configure your server correctly or change hosting plan or hosting provider.
Wait 21.07s (The web browser is waiting for data from the server).
The most common reason for this in the case of Apache is the usage of DNS Reversal Lookup. What this means is that the server tries to figure out what the name of your machine is, each time you make a request. This can take several seconds, and that explains why you have a long WAIT time and then a very quick load, because the matter is not about bandwidth.
The obvious solution for this is to disable hostnamelookup in /etc/httpd/conf/httpd.conf
HostnameLookups Off