Title: WordPress memory use
Last modified: March 11, 2026

---

# WordPress memory use

 *  Resolved [martje65](https://wordpress.org/support/users/martje65/)
 * (@martje65)
 * [2 months ago](https://wordpress.org/support/topic/wordpress-memory-use/)
 * Can you tell me why a clean wordpress instalation with only the WP-Memory-Usage
   plugin use 9MB on PHP 8.2 and use 41MB if i switch to PHP 8.3.
   On my live website
   with woocommerce i use 16MB on PHP 8.2 and use 110MB if i switch to PHP 8.3.

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [2 months ago](https://wordpress.org/support/topic/wordpress-memory-use/#post-18848763)
 * Hi [@martje65](https://wordpress.org/support/users/martje65/), very good question.
   I can reproduce this, plus: PHP 8.4 also has 40 MB . But, surprise: PHP 8.5 only
   8 MB. Can you try PHP 8.5 please?
   It is possible that PHP 8.3 handles the loading
   of `wp-admin/includes/file.php` or the initialization of the `WP_Filesystem` 
   class with higher memory overhead than 8.2, but this would need to be confirmed
   with a profiler.
 *  Thread Starter [martje65](https://wordpress.org/support/users/martje65/)
 * (@martje65)
 * [2 months ago](https://wordpress.org/support/topic/wordpress-memory-use/#post-18848990)
 * Dear [@berkux](https://wordpress.org/support/users/berkux/)
 * unfortunately i can’t go to PHP 8.5 but i have the high load also with PHP 8.4
   just like you.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [2 months ago](https://wordpress.org/support/topic/wordpress-memory-use/#post-18851646)
 * **Further debugging:** I reduced the plugin step by step until only `memory_get_peak_usage()`
   remained. At PHP 8.4 the measured peak was still 38 MB; at PHP 8.5 it was only
   8 MB.
 * To investigate, I added a Diagnose tab (new in version 2.1.0): it captures a 
   full PHP/WordPress configuration snapshot and generates a ready-to-paste AI prompt
   for analysis.
 * Comparing the snapshots from my PHP 8.4 and PHP 8.5 environments revealed that
   OPcache was disabled on 8.4 and enabled on 8.5 — which is most likely the reason
   for the difference.
 * Could you confirm whether that is indeed the cause?
 *  Thread Starter [martje65](https://wordpress.org/support/users/martje65/)
 * (@martje65)
 * [2 months ago](https://wordpress.org/support/topic/wordpress-memory-use/#post-18851734)
 * Dear [@berkux](https://wordpress.org/support/users/berkux/),
 * I can confirm that the OPcache was disabled on PHP 8.3 and PHP 8.4. 
   If i put
   the OPcache to ennabled the WP-Memory-Usage is the same for all of them, thanks
   for clearing things.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-memory-use%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-memory-usage/assets/icon-256x256.png?rev=3474934)
 * [WP-Memory-Usage](https://wordpress.org/plugins/wp-memory-usage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-memory-usage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-memory-usage/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-memory-usage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-memory-usage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-memory-usage/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [martje65](https://wordpress.org/support/users/martje65/)
 * Last activity: [2 months ago](https://wordpress.org/support/topic/wordpress-memory-use/#post-18851734)
 * Status: resolved