What’s the best way to reduce WordPress memory usage?
Don’t use too many plugins. Use only the plugins that you absolutely need and don’t go “feature crazy.”
Thanks Macmanx. How about if I’m not even using any plugins? WordPress seems to be using around 16mb of memory per request, but I’d like to get it even lower if that’s possible.
That’s about average for a stock installation of WordPress 2.9.2. Most decent hosting providers cap PHP’s available memory at 32mb, so you should be fine.
Fortunately, one of the major improvements in the upcoming WordPress 3.0 is lower memory usage.
Thanks again Macmanx. I guess I’m not so much worried about how much memory I’m using as wondering how someone could manage to get it so low (I’ve seen a few sites around 5-6mb)? The lowest I’ve ever seen on my own installs is around 12mb per request; cutting that in half (with not just a base WP install but a few plugins loaded as well) must be some kind of magic!
The other sites were probably using caching to cut down on memory usage. Considering that you’re averaging 16mb, I wouldn’t recommend it yet.
http://codex.ww.wp.xz.cn/WordPress_Optimization/Caching
Thanks for all the help Macmanx!
MacManX, could you explain why a new install of 3.0.1 would be using 30MB per request?
Are there problems with 3.0.1?
The only plugins in the new install are TPC! Memory Usage and W3 Total Cache. No content, no traffic, no widgets. Twenty-Ten.