Title: Memory usage incorrect
Last modified: August 30, 2016

---

# Memory usage incorrect

 *  Resolved [m1ndmaker](https://wordpress.org/support/users/m1ndmaker/)
 * (@m1ndmaker)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/memory-usage-incorrect/)
 * While other plugins like WP-Memory-Usage show the correct amount of available
   memory (like in my case, 140M, as set in php.ini as well as wp-config.php), your
   plugin keeps showing only 64M of available memory.
 * I have not had a look yet how your way of retrieving the total amount of available
   memory differs from plugins like WP-Memory-Usage, but maybe you want to have 
   a look.
 * Best
 * Michael
 * [https://wordpress.org/plugins/multisite-enhancements/](https://wordpress.org/plugins/multisite-enhancements/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [m1ndmaker](https://wordpress.org/support/users/m1ndmaker/)
 * (@m1ndmaker)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/memory-usage-incorrect/#post-6216847)
 * So here’s the answer:
 * WP-Memory-Usage uses ini_get(‘memory_limit’),
 * Your plugin uses the constant WP_MEMORY_LIMIT.
 * To have both show the same amount, both constants WP_MEMORY_LIMIT as well as 
   WP_MAX_MEMORY_LIMIT need to be set in wp-config.php:
 *     ```
       define( 'WP_MEMORY_LIMIT', '140M' );
       define( 'WP_MAX_MEMORY_LIMIT', '140M' );
       ```
   
 * Best
 * Michael
 *  Plugin Author [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/memory-usage-incorrect/#post-6217143)
 * Thanks for the hint, answer.
    THe plugin display the memory for WP, was on default
   defined in the core about the constant. That was the point, that the plugin display
   this const value.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Memory usage incorrect’ is closed to new replies.

 * ![](https://ps.w.org/multisite-enhancements/assets/icon-256x256.png?rev=1429634)
 * [Multisite Enhancements](https://wordpress.org/plugins/multisite-enhancements/)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-enhancements/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-enhancements/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-enhancements/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-enhancements/reviews/)

## Tags

 * [usage](https://wordpress.org/support/topic-tag/usage/)

 * 2 replies
 * 2 participants
 * Last reply from: [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/memory-usage-incorrect/#post-6217143)
 * Status: resolved