This is a quick tip that will help you to track down some information about how much memory your WordPress site is using at various hooks during WordPress’ execution.
Download the free Memory Viewer plugin from the plugin repository. Install and activate it. Now, when you view the source of your website, you’ll see at the very bottom a list of the output from the plugin. Here’s an example:
1
2
3
4
5
6
7
8
9
|
ACTION HOOK: plugins_loaded - 17.27 MBs
ACTION HOOK: setup_theme - 17.28 MBs
ACTION HOOK: init - 18.08 MBs
ACTION HOOK: wp_head - 18.22 MBs
ACTION HOOK: loop_start - 18.24 MBs
ACTION HOOK: loop_end - 18.25 MBs
ACTION HOOK: wp_footer - 18.24 MBs
ACTION HOOK: plugins_loaded - 18.18 MBs
MAX MEMORY USED: 18.45 MBs
|
The plugin displays quite a bit of useful information about where your site is using or wasting memory. If you’re experiencing some slow downs on your site and want to do a little bit of investigation, install the Memory Viewer plugin, troubleshoot, and then disable and delete it.
Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more
No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more
To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more
Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more
It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more
Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more
Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more
Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more
Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more
Interesting plugin but how do you interpret the results and is it possible to tell from it which plugins, etc, are hogging resources?
Indeed :-(
Quite simple:
1: Write down the results
2: Turn off a couple of plugins, or disable other features
3: Run the test again
4: Repeat…
I just wanted to touch base and let everyone know that I updated the Memory Viewer plugin. It now not only shows you how much memory is being used at certain times in WordPress, but it also shows you data about your MySQL queries and logs CPU time as well. There were quite a few questions on how to interpret the data, and so I wrote more official documentation here:
http://www.inmotionhosting.com/support/edu/wordpress/316-memory-viewer-wordpress-plugin
Thanks for this useful post. I have one question: is it true that the lesser memory my site uses, the faster it is?
Memory usage can drain your server. From my experience most of the hogging activities come from poorly optimized SQL queries. They can add another second or two to your page load speed, sometimes killing the server all together.