WordPress resource consumption


WordPress resource consumption issues and basic manipulations

Wordpress resource consumption

WordPress resource consumption

One of the best advantages WordPress offers is that the application can easily be extended thanks to the number of the free plugins available on the official repository. This however,  hides risks. The installation and activation of too many plugin may increase the resource consumption of the application which might be penalised by the hosting service provider. Before proceeding with the installation of any specific plugin, it would be good to put it on test on a local environment and check how it works. Before publishing to live, make sure you have a backup copy to revert. The same goes to themes as well. There are a number of themes published on the official website. Some of them are indeed professionally developed, but some of them cause wordpress resource consumption issues.

Resource consumption aspects

Speaking of resource consumption, I would like to highlight 3 main aspects of the problem.

  • Memory usage
  • CPU usage
  • and Mysql issues in a form of slow queries

As these 3 are separate issue which is some cases could be connected, they require different approaches to resolve.

WordPress memory usage

The error  that refers to insufficient memory is “Out of memory …” either displayed on the home page or on a specific inner page. WordPress triggers it when it reaches the maximum amount of memory. As a result of this there are not enough resources to complete the request. So the question here is how to resolve this.

Generally speaking there are a number of methods that would give positive effect over the memory usage. The main ones are :

  • Remove the plugins you do not need. I can assure you that WordPress does not need 20+ active plugins in order to operate normally.
  • Upgrade PHP Version. Note that newer PHP Versions are better optimised and usually decrease the consumption. For example PHP4 compared with PHP3 consumes over 45% less memory. So if your hosting provider supports multiple PHP version, I would recommend migration to a newer version.
  • Another available course of action is of course adding more memory. This depends on the situation. If the website is less known and the problem is caused by a number of plugins which are not actually needed, then upgrading the memory may not be wise.
  • Perhaps the best solution is going further and investigate what exactly is the root of the problem. There are a few great plugins that would help to measure the usage and pinpoint the top consumer. Such investigation requires a bit more skills and if you are new on the field, you may need help from experienced developer. Plugins that give better idea on which plugin consumes the majority of the resources are P3 Profiler; Memory Viewer and Debug Bar.
Summary
WordPress resource consumption - issues and solutions
Article Name
WordPress resource consumption - issues and solutions
Description
WordPress resource consumption issues - what consumes server resources. How to identify the top consumers and reduce the usage. Dealing with poorly coded plugins. Wordpress memory and CPU usage problems.
Author
Publisher Name
wppotion


Do you want to share your opinion?

Your email address will not be published. Required fields are marked *


*

We are not industry specific. We are WordPress specific. We work with everyone to help them find solutions with their troubles.
If you show us the problem you are experiencing, we will show you how to fix it. It is that simple.


Reported WordPress issues

  1. How to output custom the file field values on another page with the file download link
  2. Looking for the ability to authorize a credit collection/token on pre sale products
  3. How to automatically activate the plugin while wordpress first installation using docker
  4. How do I perform an IF/ELSE statement using data from a database on wordpress?
  5. How to check if a post or property has been viewed (on each session)
  6. wordpress How do I remove post_ID from user_meta array value
  7. Wordpress hooks working on dashboard but not on actual website
  8. Form echo is not applied of first item in a list
  9. How can I remove unwanted 1px space under navigation bar?
  10. slow down jump to anchor in divi theme

WordPress problems we are working on

  1. Advice on resolving HTTP 500 on WP site?
  2. Copying plugins to base wordpress image, Plugins folders are visible in cmd but not visible in volume mount
  3. how to handel submitted gravity form which contains singel file
  4. How to rearrange WordPress REST API comments?
  5. how to select multi button at same time with different group? [on hold]
  6. WordPress add access for users to edit his comments
  7. Show directories and files in wordpress uploads folder
  8. Insert date and time to custom wordpress mysql table using input type date and input type time by php code
  9. Contact 7 form is causing error in my website afrter updated to the latest wordpress 5.0
  10. How to Add Javascript Code to Button to track the Clicks in Wordpress

Resolved issues

  1. how to print a variable javascript in a onmousedown event?
  2. Contact form 7 WordPress plugin not showing sender email
  3. Does Wordpress list all pages for crawlers?
  4. How to update links on a WordPress website from Google Drive automatically after changing hosts?
  5. some product thumbnails doesn't show up
  6. How to keep the same page for different languages
  7. WordPress : Treat value in functions.php for all inner PHP files
  8. How to echo something after header tag (wordpress)?
  9. Error layout Elementor Wordpress (not load)
  10. APIProjectMapError when using WP Google Map plugin to display map
wppotion - powered by persistence and passion