How can I figure out where memory is being used?

I've got a WordPress site that's using too much memory, and I'm having problems with it on my shared host

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
Add a comment  | 

1 Answer 1

Reset to default 0

I 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

相关推荐

  • How can I figure out where memory is being used?

    I've got a WordPress site that's using too much memory, and I'm having problems with it on my shared host

    1天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信