How much memory does WordPress need?

Monday, October 9th, 2006 at 09:57pm

Over the past weekend I undertook the next step in rebuilding my linux boxes which was to perform a fresh install and moving services over. As expected installing Ubuntu went smoothly with the first issue arising when setting up the local copy of this site.

Getting apache, php and mysql installed was pretty trivial as I just selected the appropriate packages for installation. After getting used to how the apache configuration files are arranges I quickly had two virtualhosts defined, one for my internal site and another for this site, and I copied the files and databases over.

The snag came when I tried to load up this site and all I got was a blank page. At first all I could find about this issue talked about mysql not loading properly but I knew that wasn’t my issue as the code I had written from scratch that talks to the database was working fine. Eventually I found a reference to the php memory limit. At first I doubled it from 8MB to 16MB. No luck. I tried looking again for other solutions until I thought of doubling it again to 32MB. It was now working.

After a bit of trial an error I found that I needed the memory limit to be at least 26MB for WordPress and the plugins I use to load (but I left the limit at 32MB). Does it use this much memory for every single request and then throw it away at the end? Hmmm…

Tagged with: , ,