Find Out How Much Memory Your WordPress Site is Using

Find Out How Much Memory Your WordPress Site is Using

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:
{code type=html}
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

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

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.