Archived topic
PHP Fatal error: Allowed memory size and massive CPU Usage
3 replies · Started by Chloe on March 3, 2021
Hi there
I am having an issue with an error on the error log. I keep getting similar ones. I have the memory limit set to 2048M.
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 5242880 bytes) in /***/***/public_html/wp-content/themes/generatepress/inc/structure/post-meta.php on line 49
Our CPU usage is frequently getting to 60 - 100%. I wonder if this might be something to do with it.
Please can you advise.
Many thanks
Clojo
Hi there,
That's strange. Haven't received other reports on this before.
What version of the theme are you using?
Does the error happen with all plugins disabled except GP Premium?
Let me know :)
Hi Leo
Thanks for the reply.
I'm not sure. It seems random when it runs. It can be an hour or so before it happens again.
How should I test this? Just deactivate everything and just wait?
Many thanks
Chloe
That should be a good starting point.
If this happens randomly, then it's unlikely a theme issue.
GP's code is static so if it's an issue, then it wouldn't just happen sometimes.