Drastic increase of WP memory usage with PHP8 vs. PHP7 – critical?
-
Hello,
recently I have switched my WordPress site from PHP 7.4 to PHP 8.1 and though the site is running fine and slightly faster than before, I am concerned about the memory usage.
Out of curiosity, I have the plugin WP-Memory-Usage installed on this site. It shows the WordPress memory limit and usage and a few other stats in the WP dashboard.
With PHP 7.4 and before, the WordPress memory usage was around 2-8 MB.
With PHP 8.1, the WP memory usage went up to over 28-30 MB.Since the (default) WP memory limit is 40 MB, with 30 MB this is now quite close to the limit. Should I increase the WP memory limit (PHP memory limit is 160 MB) or will it be just fine?
The topic ‘Drastic increase of WP memory usage with PHP8 vs. PHP7 – critical?’ is closed to new replies.