• Resolved martje65

    (@martje65)


    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

    (@berkux)

    Hi @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

    (@martje65)

    Dear @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

    (@berkux)

    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

    (@martje65)

    Dear @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 to reply to this topic.