TurnKey Linux Virtual Appliance Library

Wordpress Appliance running out of memory, crashing

I am trying to deploy a Wordpress Appliance (wordpress-11.2-lucid-x86) on a medium AWS server (c1.medium, 5 ECU, 1.7G RAM) and am having trouble running under load. By default, the appliance is using the prefork apache install, with each apache2 process using 60-63MB of memory. I've already disabled every apache module that isn't needed by wordpress and brought this memory usage down to 55-60MB.  By default the MaxClient setting is 150 which would be over 8GB memory usage. I had to increase the MaxClient setting (at 250 right now) to get page load times to be under 10 seconds. But at either of these, I'm well beyond the 1.72GB ram that the medium AWS server has to work with. I'd have to bring MaxClients down to about 30, which is unacceptable for a production server. After running for a few hours, all access to the server (webmin, shell in a box, ssh, apache server) was unresponsive and I had to force a reboot from the TurnKey Linux Hub. I suspect apache finally used all the RAM and swap and brought everything to a grinding halt.

Has anyone gotten a Wordpress Appliance to run under moderatly heavy load? Is the apacher worker mpm version better than prefork for this? Are there Wordpress/PHP/Apache settings that are key to getting acceptable performance?

Jeremy's picture

I can't help much

As your issue is way out of my league! But FYI Liraz blogged about this sort of thing here a while ago. You may find his post (and/or some of the responses) of interest.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)