I've got a WordPress site that's using too much memory, and I'm having problems with it on my shared hosting site.
So, to try to figure out where it's coming from without wrecking my live site, I cloned the site and installed into a local VM, where I deleted all plugins except Query Monitor.
That clone is still using 157M of memory with no other plugins installed.
On the other hand, I've got a fresh WordPress install that I installed Query Monitor into, and it's using only 4M of memory.
So clearly, there's something in my clone that's burning memory. It's not the plugins -- they're gone. It's not the theme -- I switched it to the same theme as the fresh install (stock 2017 theme).
I've looked through the output from Query Monitor, and I can't see a difference of substance.
What can I look for to try to figure out why my clone is consuming so much memory?
I've got a WordPress site that's using too much memory, and I'm having problems with it on my shared hosting site.
So, to try to figure out where it's coming from without wrecking my live site, I cloned the site and installed into a local VM, where I deleted all plugins except Query Monitor.
That clone is still using 157M of memory with no other plugins installed.
On the other hand, I've got a fresh WordPress install that I installed Query Monitor into, and it's using only 4M of memory.
So clearly, there's something in my clone that's burning memory. It's not the plugins -- they're gone. It's not the theme -- I switched it to the same theme as the fresh install (stock 2017 theme).
I've looked through the output from Query Monitor, and I can't see a difference of substance.
What can I look for to try to figure out why my clone is consuming so much memory?
Share Improve this question asked Dec 24, 2019 at 15:47 VultanVultan 1011 bronze badge 1- This is more of a general PHP question and you might have better luck on the main Stack Overflow site. There are some promising looking answers in this SO questionhttps://stackoverflow/questions/6114155/how-do-you-debug-php-out-of-memory-issues – Dave Romsey Commented Dec 27, 2019 at 22:55
1 Answer
Reset to default 0I found it: it was a massive set of WordPress cron jobs that I had inadvertently accumulated. The technique I used was to keep removing things from the database in the clone that weren't in the blank install, watching the memory in query monitor to see what dropped it.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744873101a4598381.html
评论列表(0条)