I am dealing with a Wordpress site that shows regular out of memory errors when navigating the control panel.
I am asking a question about it here because I have tried all the usual options: checking the memory assigned by the server both from the server and via phpinfo, using WP-DEBUG and the Query Monitor plugin. It's not the theme or the page content, because it's happening on the admin interface, not the public one.
I would like to know about other issues that might be restricting memory usage that I can investigate this further.
define( 'WP_MAX_MEMORY_LIMIT', '768M' ); set in wp-config.php
a php info check shows the memory limit on the server as 768M.
I have checked the server logs, which say the account has come nowhere near its 2Gb account memory limit in the last seven days.
The site is only trying to allocate fairly small amounts of memory : not more than about 25Mb. The errors look like:
PHP Fatal error: Out of memory (allocated 2359296) (tried to allocate 12288 bytes)
PHP Fatal error: Out of memory (allocated 11272192) (tried to allocate 12288 bytes)
That surely should not be a problem on a site with these resources. There's no consistency on which file or plugin is mentioned in the error log.
And yet, I'm getting these out of memory errors. I don't know where else to look!
Can anyone suggest what I am missing? I have reworded this question to make it clearer what I have already tried, and explain why I think this question is generally useful.