Why does WordPress core/plugins Memory/CPU usage vary so much?
-
Putting the finishing touches on a WordPress 3.8.1 site based on Genesis 2, I keep wondering why memory usage has varied so wildly during development. Using the TPC Memory Usage (updated) plugin, I measured swings from ~40MB to almost 60MB RAM for WordPress, even after I migrated the entire site from SiteGround (with Varnish, Memcached and whatnot) to a plain-vanilla Plesk-based Apache server setup. From the moment I changed PHP to use version 5.5x on the Plesk/Apache server, WPs memory usage has not gone over 12MB RAM, with the same content, same theme, same plugins, and with the client adding and editing content. I don't quite understand why memory usage would change so much, given that the basics besides the PHP version have not changed. Also, if this has to do with emptying some RAM-based content or cache or whatever, is there a way to force that without switching PHP versions?
-
Answer:
I must say, 12MB is pretty low! But from what I read, the memory consumption has dropped considerably from PHP 5.3 to php 5.5. If you also leverage OPCache, that might be the reason why your memory consumption is so low. Not totally unrelated; I recently discovered that translation within WordPress also takes quite an amount of memory.
Arden de Raaij at Quora Visit the source
Related Q & A:
- Why do Wordpress rewriites seem to work differently for posts vs pages?Best solution by WordPress
- Why are you even more tired after you get too much sleep?Best solution by Yahoo! Answers
- Why is the core of the earth molten?Best solution by Yahoo! Answers
- What is the meaning of "dual core CPU" and "32 -bit operating system?Best solution by Yahoo! Answers
- Is intel pentium (R) dual cpu and intel dual core processor same?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.