Amit Bhawani Blog

Stay Updated!

Powered by Genesis

You are here: Home / Wordpress Guide / Reduce CPU Server Load for Blogs by Removing Related Posts Plugin

Reduce CPU Server Load for Blogs by Removing Related Posts Plugin

September 20, 2010 by Amit Bhawani 12 Comments

We have been using a few useful WordPress plugins on our blogs from the past years and have always been on high server load issues because of which we had to move from shared hosting to dedicated and then move the blogs onto different services like Dedicated, VPS with backups on external drives. The blogs can get heavy spike in the sql queries mainly because of the WordPress plugins which the load goes up and you will have to either upgrade the current VPS or move to a higher configuration. In order to Find Server Load check out our article which is useful for more Cpanel based hosting accounts.

Avoid :

One best suggestion would be to stop using the Contextual Related Posts Plugin which is available at http://wordpress.org/extend/plugins/contextual-related-posts/. No offense to the plugin developer but we have went ahead with multiple tries and have confirmed the below graphs.

The problem with these plugins is that whenever a blog post is read by a visitor, the plugin would run a few SQL Queries and search for other related posts based on title, content and category. This means that on every page load the server gets more resource used and when you disable these kind of plugins, the load is reduced because plugins like these need huge CPU resources.

CPU Server Load Usage

The above screenshot is taken from our Linode CPU Load Graphs section which shows the current load on the VPS and in order o give you more idea we went ahead by activating the plugin for a few minutes. It’s clearly shown the load moves to the top and because of this the blogs get frequent HTTP Error 503 Service unavailable & Error establishing a database connection errors in the WordPress based blogs.

Recommended :

In order to give another solution in the form of a WordPress plugin which would allow you to display related posts on your blog and feed, we would suggest you to use the YARPP [Yet Another Related Posts Plugin] available at http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/ which is quite better in terms of not just the performance but also takes very less CPU usage giving you less issues on the host. The best part is that this plugin does caching, which would increase the performance and also the speed.

Linode CPU Usage

The above screenshot would give you a clear idea on the usage of CPU resources in the form of MySQL Queries when the plugin was activated for a limited period of time.

Alternative Suggestion :

Check out Google Related Links which is a service which wont put any load on your server because it actually finds the related posts based on the Google Indexed Blog posts and pages. Do read our other Tips to Reduce WordPress High Server Usage Problems.

Related Links Google

The best part of using the Related Links by Google is that you don’t put any load on your server and the results are loaded super quick.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

About

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani I am also the Editor-in-Chief of PhoneRadar & Master Gadgets

About Amit Bhawani

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani

Comments

  1. Amit pal says

    September 20, 2010 at 12:41 pm

    But sir, you are not using Google’s tool – as I see.

    Reply
    • Amit Bhawani says

      September 20, 2010 at 12:42 pm

      It was actually a suggestion, i was still testing it from a long time to make sure it fits into the current blog theme.

      Reply
  2. Sourish says

    September 20, 2010 at 1:08 pm

    what about yet another related posts plugins , most of us blogger use that .

    Thanks

    Reply
    • Amit Bhawani says

      September 20, 2010 at 1:11 pm

      Most of these can create issues and this is the very reason the best suggestion would be comparing the results by Enabling and Disabling the plugin.

      Reply
  3. Anish K.S says

    September 20, 2010 at 6:03 pm

    great,

    me disbled all unwanted plugins due to high cpu usage. google related links is a great idea. thanks

    Reply
  4. Shaswat Patel says

    September 20, 2010 at 9:33 pm

    Well I tested with my blog and it’s really effective one and believe me it will be good to gain Search Engine traffic too! I am not saying sudden jump but I found somewhere 20% jump for one of dead blog of mine which recently start updating.

    Reply
    • Amit Bhawani says

      September 20, 2010 at 9:34 pm

      Are you referring to the Google Related Posts Plugin?

      Reply
  5. Taylor Jasko says

    September 22, 2010 at 10:11 am

    Easy… add a simple function to your functions.php file in your default theme and then call it in the single.php file in the right location.

    Then set up page caching using WP Super Cache or W3 Cache and you’re good to go!

    If you want to be even more fancy, you could install XCache too to really speed up your PHP script load times.

    Reply
    • Amit Bhawani says

      September 22, 2010 at 10:15 am

      What function are you referring to here? Could you paste the code for the related posts function.

      Reply
      • Taylor Jasko says

        September 22, 2010 at 10:34 am

        It’s simply something like this:
        http://www.wpbeginner.com/wp-themes/how-to-add-related-posts-with-a-thumbnail-without-using-plugins/

        The code I’m using on my blog is handwritten by me, but it’s similar to that code.

        This way, using a function, you can guarantee that it’ll be cached and won’t slow anything down. There are some other more advanced ways like using the post meta data section and storing the info like that, but a function is simple and works very quickly. Besides, it’s much more customizable.

        For example, you could get the function to actually scan all the words in the post and relate it off that or you can make it look off the tags or even the title.

        I’m a WordPress developer myself; why I know so much about this.

        Reply
  6. Namit Gupta says

    December 21, 2010 at 4:10 pm

    What plugin you use to display related posts with thumbnails?

    Reply
  7. maha says

    April 13, 2011 at 11:15 pm

    Hi Amit,
    I am using List Category Posts plug in on my WP sites. I am using this to display category posts on the sidebar. What about this plug in terms of CPU usage? And also using Google XML sitemaps plug in. Shall I keep these or any better alternatives?
    Regards

    Reply

Leave a Reply to Taylor Jasko Cancel reply

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

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Timeline

Check out Just EV Tweets by @amitbhawani

Recommended To Read

  • Data Patterns (India) Limited IPO Details
  • Medplus Health Services Limited IPO Details
  • Rategain Travel Technologies Limited IPO Details
  • Anand Rathi Wealth Limited IPO Details
  • Tega Industries Limited IPO Details