Resource limits has been reached on GoDaddy (wordpress site) - wordpress

I have an issue with my "Multisite WordPress":
the load time is too slow due to resource limitation on the hosting.
I am using, GoDaddy, 512 MB (Memory). Its a linux server.
As far as I know, for a linux server, this is not a problem to handle 1 WordPress website. There is a little trafic on the web site (20 visitors per day). I optimised the database. All pictures are compressed, PHP 5.6 installed (its the latest one available), cache is enable.
Can you please help me resolve this issue?
Here is some screenshots to better explain the situation. screenshot from cPanel

I'm having that same issue. GoDaddy wants me to pay to upgrade my resource limits, but I know it shouldn't use that much of my resources (my other similarly low-used sites are hosted with GoDaddy on Level 1 just fine). I have tracked it down so far to the PHP processes. A temporary solution: in cPanel, scroll down to the Software section, click PHP Processes, then click the "Kill Processes" button. However, I am still looking for a plugin or something that keeps causing this recurring issue.

Related

Speed of Localhost Server

I have built my wordpress/woocommerce and hosted it on Localhost via WAMP.
Since day one, before I had loaded any plugins etc and only had the wordpress CMS installed, it has ran very, very slow.
I have been advised that it should be no where near as slow as it is and could be a variety of reasons for this such as bad coding.
I am very new to web design etc and was wondering if someone would be able to advise as to how to check what might be slowing things down?
I have installed jquery monitor and it shows a few different things but all are plugins which are relatively new and the problem has been there since day one...
I have been looking for a free host to try on but my website exceeds the size as it is at 1.6gb which people have said could be the problem, however the problem as I have mentioned has been there since day one with only the basic CMS shell and no uploads.
My comuter is also relatively fast and I have no issues with how it runs i general.
Any help would be much appreciated.
Do you use http://localhost for accessing the website and "localhost" as MySQL host? If yes, try accessing the website through http://127.0.0.1 and 127.0.0.1 in your wp-config.php for your MySQL host. Depending upon your Windows version and network settings it is possible that your DNS resolution fails.
Do you have Antivirus solutions enabled? Try to disable them temporarily and check if the problem still exists.
Check with tools like Wireshark and procmon which of the components (webserver, network, client) take how long for processing the HTTP requests.
If all directories hosted on your local server are slow then this means your WAMP is the one causing the issue.
Try backing up everything and resolve this by following this instructions here
https://www.devside.net/wamp-server/wamp-is-running-very-slow
This worked for me.

My wordpress website is running very slowly on Xampp Localhost

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.

How to reduce CPU Time Usage with WordPress site?

I have 3 WordPress sites in 1 cPanel account. Since last week, I always exceed the CPU Time Usage limit and it make our site going down and give "Gateway Timeout" for couple times.
Here is what I did so far :
Enable dynamic caching
Enable gZIP compression with .htaccess
Use cloudflare
Leverage browser caching with .htaccess
Disable wp-cron.php and setup manual cronjob via cPanel
Install Heartbeat Control on each site
Install iThemes security on each site
Optimize databases with plugins (wp-optimize and wp-sweep)
All what I did doesn't help.
Does anyone know how to fix this issue?
If you feel this is malicious then you can activate I'm Under Attack Mode in CloudFlare; this will stop a Layer 7 attack where someone is deliberately trying to exceed your CPU usage.
I would cut down on plugins, trust CloudFlare instead of using iThemes Security, Heartbeat Control, etc.
Also consider switching to a static site generator instead of a WordPress site. Your performance issues look as if they are likely rooted in bad code; try using XDebug to see where the most CPU usage in your code base is at.

WP Admin extremely slow

The WP back end of a site I'm working on (It's a multisite) takes about 25 seconds to load.
Everything was working fine until yesterday and the front end still works perfectly well. All other sites on the same server run just as well, so it MUST be a WP back end issue.
I don't remember exactly what change it was that made it so slow. I remember updating WP recently (to version 3.4.2), adding some plugins on one of the sites and changing the max upload file size.
I tried to disable all the plugins, changing the themes back to default, changing the max file size back, and adding define('WP_MEMORY_LIMIT', '1024M'); (and other values) to WP-config but none of it helped.
Also tried to 'Update network', but I got an error - couldn't connect to host.
Any ideas?
I got in touch with our network admin and we resolved the issue.
I will copy his answer here. Hope it helps someone.
Does Wordpress use 'self-referential URLs' ? What I mean by this is...
is wordpress trying to access it's own templates/css using fully
qualified domain names in the URL (e.g. http://example.co.uk/someurl )
Because we use Network Address Translation (NAT) on our firewalls to
hide the real IP address of the server, it has the side effect that if
the server tries to access it's own URLs, it will try to send the
traffic to the external interface on our firewall, which is where the
DNS resolves to.
The fix for this is very simple - we just add the site url into the
/etc/hosts file so that the server knows to use it's own IP address
instead of the address on the firewall.
So he added our address to the hosts file and now it works perfectly.
Awesome.
I've seen this before where the admin pages are trying to poll external Wordpress sites for details of Wordpress upgrades, plugin updates and Wordpress news. If there's no proper access (because of firewall restrictions, bad DNS, etc) then the page has to wait for the HTTP requests (I think WP uses cURL) to timeout.
If you're still unable to identify the cause I'd recommend a catch-all solution of installing xdebug and profiling the page with webgrind, xcachegrind, etc
Had the same problem for a week and now the problem of very slow WP-admin was solved!
Before, I cannot access my sites if I use incognito or I am not logged in as WP user, but all times in the wp-admin, it takes me 40 seconds- minute or even never.
Solution that worked:
I accessed the files in the file manager using the CPanel, and I saw so many unused and unnecessary folders and themes and that's the reason that causes the very slow access to admin.
It was because during the days of being a newbie, I stuffed a lot of files in the Public Http and that made it congested.
I logged in to another CPanel account that I bought personally before, and compared the folders of the "proper" versus the "congested" and compress, backed-up and deleted all the unnecessary.
My host: Hostgator, responded well also.
Hope this would help others.
I also had a very slow Dashboad in wordpress. Reading the James C´s answer, I realized that my site is located in a corporate intranet behind a firewall to access internet.
James C answered:
"I've seen this before where the admin pages are trying to poll external Wordpress sites for details of Wordpress upgrades, plugin updates and Wordpress news. If there's no proper access (because of firewall restrictions, bad DNS, etc) then the page has to wait for the HTTP requests (I think WP uses cURL) to timeout."
My solution was avoid all the internet conections: (1) disable all the wordpress updates using the wordpress plugin "Disable all wordpress updates". (2) activate de wordpress pluging "Disable google fonts"
After these two plugin activations, the Dashboard works to a suitable speed.

PHP Code stuck in Cache [Memcached] (WordPress)

Been having a bit of a problem with my site regarding our caching method and my php code not refreshing or flushing.
To start, my site is a WordPress site on a dedicated Nginx webserver. I used W3 Total Cache for the initial caching setup. Everything was set up to cache through Memcached.
(I should note, my website is somewhat of a 'guest' on this server, which is bit of a semi-community donation semi-sponsored server that runs some other things. The admins are skilled but also volunteers. I have their full support for fixing things, but they don't have time to troubleshoot my very odd issue (especially because I asked for caching to get turned on for the site myself). If we had some hints on what to go on it would make things easier for us than taking shots in the dark ;) So any suggestions are welcomed.)
At some point we noticed that changes to php pages and Wordpress & Plugin updates were not working at all, while the code on the server reflected updates, the pages still processed through the older php code.
This presented a couple unique issues. W3 Total Cache stores it settings in php files. Other php files, when deleted, stop working, but when they are restored to the server, memcached still insists on using its ultra-old memcached copy. The W3 Total Cache settings, whether i removed or altered the settings php files, would NOT stop running everything through cached memcached data.
The server admin attempt rebooting memcached and then flushing it. Neither of those seemed to have any effect. All the other basic settings seem to be set-up correctly.
We can, of course, still add new plugins, all the data that comes from the database works just fine.
At least one other site on the server that is not wordpress also uses memcached with no issues.
Any help is appreciated, should be able to provide further information if it is needed.
Do you have apc.stat = 0 in your settings? Does restarting php engine help?
This is going to sound really obvious but you didn't mention it so:
Did you try turning off the Total Cache plugin entirely to confirm you can see the changes when caching is disabled?
Until you've done that and made sure you get the results you expect, there's no way to know that memcached is really the problem.

Resources