Optimise Google XML sitemap Generator Plugin to reduce Server Load

by Avinash · 12 comments

Post image for Optimise Google XML sitemap Generator Plugin to reduce Server Load

Sometime back i wrote about How to reduce WordPress server load on Shared Hosting and there i talked about Google XML sitemap Generator plugin can be one of the main culprits behind your High server/ CPU load on your shared hosting. In this post i will talk about few things about the same plugin and how to configure some of its settings so that it uses less CPU or memory on shared hosting.

I am assuming here that you already have installed the plugin and have some issues with your CPU/Server load on shared hosting. You should change the default options only when you know what you are doing. Some of the configuration changes as described below surely will help you reduce your server load and run your blog smoothly.

1. BASIC OPTIONS CONFIGURATION

Under Basic options, you can untick the option of  ” Rebuild sitemap if you change the content of the blog “. This small change in setting will help you reduce server load as the sitemap wont be generated everytime you write a new post. You can generate sitemap manually if you have issues with your server.

google xml sitemap reduce server load

2. ADVANCE OPTIONS SETTINGS

You can limit the number of posts to be included in sitemap to 5 or 10. It will help you reduce server load with no problems with your sitemap as it will be uptodate.

google xml sitemap1The reason as talked about in the plugin FAQ too :

If you have problems with the maximum execution time or memory limit you can limit the number of posts which will be included in the sitemap. Newer posts are included first so your sitemap will stay up-to-date.

3. BUILD SITEMAP IN BACKGROUND.

Make sure that the option of ” build sitemap in background” is ticked ON. Its a must if you are on a shared server.

google xml sitemap2

Hope these settings will help you reduce the server load and make your blog run smooth.  If you applied all the settings as described above, then may be you will need to build sitemaps manually each time by navigating to Plugin settings page but i don’t think that’s a big issue.

About Avinash
A Tech Freak behind this blog and few others like Avinashtech blog, Forum etc. A Mechanical Design Engineer by profession but Tech Blogger by passion.

Visit my website →

{ 11 comments… read them below or add one }

mang October 31, 2009 at 6:34 PM

Hi Avinash,

Thanks so much for this guide – I'll make some changes to my configuration now.

I guess I will NOT use tip 1 because then I'd have to manually update the sitemap regularly.

Tip 2 sounds very useful – as only 1 post is added each day (or less), I will limit the posts to 2, and that should mean that the new post is included, but the whole sitemap isn't rebuilt.

*mang.

Reply

Avinash October 31, 2009 at 7:27 PM

Welcome mate. Glad I could help you.

Reply

falcon1986 December 5, 2009 at 2:32 AM

Wow! Thanks for the tips. Just so happens I was doing some “plugin cleanup” today and was wondering what to do with this one. Have been getting some CPU throttling alerts, so I will see how it turns out. Thanks again!

Reply

mattbelcher December 24, 2009 at 2:36 PM

Cool thanks

Reply

Heeren Tanna February 5, 2010 at 11:47 AM

Hi avinash,

my blog is facing lot of server issues even after installing wp super cache ..

just saw xml site map plugin & it was taking 16mb+ load on memory ..applied setting show here :)

Thanks Avinash .. for this post ..

Reply

Haroun Kola June 13, 2010 at 5:00 PM

Thanks for this. I’m applying your suggestions now and until I can afford a dedicated server for my site, I hope this will keep my shared hosting company happy :-)

Reply

Johnson October 7, 2010 at 5:10 AM

Thanks I’ll give these tips a try. I also like to use a Plug-in called WP-Memory Usage to monitor my memory usage on Wordpress.

Reply

Charles November 19, 2010 at 2:19 AM

Great tips for this, I can see the pages run a little faster already!

Reply

Avinash November 19, 2010 at 9:51 AM

@Charles, Glad it helped you.

Reply

Dark June 12, 2011 at 10:04 PM

Bạn ơi ! cho mình hỏi điều này với ! sitemap của mình hiện giờ đã hơn 50000 url nên google thông báo là quá tải nên báo lỗi trông Webmaster tool. mình đang dùng wp ko biết có cách nào có thể giải quyết nó không nhỉ ! cảm ơn

Translated

My friend! I asked for this to! my sitemap now has more than 50,000 notices url so google is overloaded so the error looks Webmaster tool. I’m using wp not know how can solve it baby! thanks

Reply

BSPR October 13, 2011 at 11:45 PM

Wanted to add you don’t need to Write a normal XML file (your filename) if you don’t use it in your site, meaning users can click on the sitemap link to see it.

What’s the difference between the “sitemap.xml” and “sitemap.xml.gz” files?

The “sitemap.xml.gz” is a compressed version of the “sitemap.xml” file. It has the same content, but is significantly smaller than the other one. This helps you and the search engines to save a lot of traffic. Since all search engines support compressed sitemaps, you actually don’t need the “sitemap.xml”, but maybe you or your visitors want to view them from time to time so keeping it doesn’t hurt.

Reply

Leave a Comment

{ 1 trackback }

Previous post:

Next post: