Memory values off by multiple of 1024
-
I’ve used this plugin for years (thank you!) and until a recent server migration I am getting incorrect results in my footer:
Memory: 20 of 2 MB (1000%) | WP LIMIT: 1 GB
– WP Limit is indeed set to 1GB
– WP Max limit is set to 2GB
– PHP V 7.3
– PHP memory_limit 2GBWhen I execute:
echo “Used memory: ” . (memory_get_peak_usage(false) /1024) . “Kb <br>”;
echo “Total memory: ” . (memory_get_peak_usage(true) /1024) . “Kb <br>”;It reports:
Used memory: 419.125 Kb
Total memory: 2048 KbIt should be:
Used memory: 419.125 Mb
Total memory: 2048 MbI realize this is likely at the host but they are saying it is the plugin and I’m just looking for something I can definitively show them it is on the server side, maybe even just referencing them to this post with your response on the matter. Thank you.
- The topic ‘Memory values off by multiple of 1024’ is closed to new replies.