TPC! Memory Usage allows WordPress administrators to view the current and peak memory usage of the application. This is extremely helpful when testing new plugins, or if there are a lot of modifications, plugins, or large language files. As of version 0.4, administrators now have the ability to view detailed system information about their web server, MySQL, PHP, and WordPress software. (Requires PHP5)
A strategic dashboard widget will provide a snapshot which includes the following information:
- Current memory usage
- Current peak memory usage
- Logging for all-time highest memory usage
- File logging for memory usage at checkpoints, when usage exceeds set threshold, both, or none.
- Ability to add custom checkpoints (checkpoint – a WordPress core, language or plugin action at which memory usage is measured)
- Send e-mail notification if memory usage reaches threshold setting
- Customize permissions to show certain users the memory usage widget and display mechanisms
- View PHP and WordPress memory limit (defined in wp-settings.php)
- View PHP version, User Agent tag, server software information
A detailed system information page allows you to keep a close watch on:
- Server, host, and client information
- PHP information
- MySQL uptime, version, and more
- Common and advanced WordPress settings
- Completes basic security check to help prevent attacks
- Download TPC! Memory Usage.
- Upload all files into
- Activate the plugin using the WordPress plugin administration panel.
- In the left-hand navigation menu, an item entitled Memory Usage should appear.
- Customize your TPC! Memory Usage installation by adding checkpoints, and using the on-screen options.
- If you choose to enable file logging, you must make sure that
/wp-content/plugins/tpc-memory-usage/logs/tpcmem.logis writable on the server.
- Why do I keep getting messages saying my memory limit has been exceeded?
This is actually a feature of TPC! Memory Usage that you can adjust or turn off at will. TPC! Memory Usage will send notifications if the memory usage of PHP exceeds the preset amount (defaults to 32MB). You can change this under Notifications on the Settings page.
- What is a checkpoint?
A checkpoint is any WordPress action (also known as a hook) at which memory usage is measured. A list of WordPress actions can be found at https://codex.wordpress.org/Plugin_API/Action_Reference. Most plugins also use their own actions, and a checkpoint can be created using those as well.
- Why can’t I see the memory usage within the HTML on the pages/posts?
This can happen for either one of two reasons. First, make sure that this feature has been enabled and you are looking in the correct place. A quick search for ‘Memory Usage’ (w/o the quotes) may help you find the data; however, if this doesn’t work you will have to make sure that the
wp_footer()functions or actions are called within the theme you are using. Some themes do not include out-of-the-box support, so you may have to add the
wp_footer()functions to the theme templates yourself.
I have this on all my blogs, and have had for years. Initially I installed it because my site was failing because of too much memory usage, but it also provides lots of information about your installation and software versions. I also appreciate the security evaluation. There are batter dedicated security tools, but this is a nice starting point.
As other users have stated, this plugin floods your inbox with hundreds of warning emails.
These warnings are generated whenever your WP uses anything more than the default 32 MB memory limit, no matter if you’ve set the limit higher.
I was getting a lot of memory errors (especially in the wp admin console) on my site Goringe Accountants but couldn’t work out how much memory I needed to increase it to.
By switching on this plugin I now know what it’s currently using and also the highest it has ever reached – so instead of blindly throwing a huge amount of memory at the problem, I can target just the right amount – freeing up resources elsewhere.
Thank you very much 🙂
Contributors & Developers
“TPC! Memory Usage” is open source software. The following people have contributed to this plugin.Contributors
- Updated compatibility for WordPress 3.8
- Fixed memory usage bar graph
- Fixed missing closing SPAN tag
- Database logging implemented.
- Reports administration page added for viewing database log.
- Added load averages to dashboard and overview (Linux only).
- Added Apache modules to overview.
open_basedirto Security Check.
- Added Tpcmem_Log_Adapter_Interface for increased extensibility.
- Use dependency injection to implement logging, reducing coupling between objects.
- Changed directory structure for class files to fit ZF coding conventions.
- Trimmed number of plugin files.
- Adjusted memory limit for graphs, and footer.
- Improved ModSecurity detection.
- Switched to object-oriented model for security check.
- Added WordPress unique authentication key detection to Security Check.
- Improved System Overview UI.
- Additional WordPress configuration settings added to System Overview.
- Fixed bugs related to ‘magic_quotes_gpc’ and ModSecurity detection.
- File logging for tracking memory usage at checkpoints, and also when usage exceeds threshold.
- Number of database queries shown in high memory usage notification e-mail.
- Pull PHP ‘memory_limit’ directly from php.ini instead of using runtime value.
- Fixed bug related to default checkpoints.
- Added support for custom checkpoints, which is defined as a WordPress core, language or plugin action at which memory usage is measured.
- Ability to add multiple recipients of high memory usage notification e-mail.
- Fixed high memory usage notification e-mail function.
- Updated architecture application architecture (PHP5 object model).
- Changed default memory usage notification level from 16MB to 32MB.
- Added check for apache_get_modules().
- Added Security tab to System Overview page (helps prevent security-related vulnerabilities).
- Under Server tab, Server Signature says OFF when it is blank.
- Added detailed system information page (MySQL, WordPress, PHP, server/client)
- Added System Overview link to dashboard widget
- Moved TPC! Memory Usage menu item from Settings to top-level menu called Memory Usage
- Added confirmation for settings page when update completed.
- Send e-mail notification to admin if memory usage reaches threshold setting
- Reduced database queries (peak usage only logged at shutdown)
- Moved checkpoint registration to separate function
- Added checkpoint counters to count how many memory usage samples are taken
- Fixed script and style path bug.
- Ability to log historically highest memory usage
- Ability to block certain users from viewing the dashboard widget and other display mechanisms
- Initial release
- Dashboard widget with peak and current memory usage
- Option to show memory usage in administration panel footer
- Option to show memory usage in comments within the WP site pages and posts