Apache & Magento Setup

From my earlier post http://www.linode.com/forums/viewtopic.php?t=5078 I am looking for some advice on how to make sure I don't run out of memory again. I am running a 2 node setup with a mysql server and a web server running apache.

I am running magneto with APC as the cache on the web server and everything seems to run fairly quickly but it seems under load the server very quickly runs out of memory and falls over.

Does any one have and suggestion on what apache settings might need changing to stop it consuming large amount of memory?

I have followed quite a few guide on magneto and I think I have most of the optimization's suggested for magneto in place but I have not done a large amount with apache.

2 Replies

Following the hints on http://library.linode.com/troubleshooti … networking">http://library.linode.com/troubleshooting/memory-networking

apache2 -V | grep 'MPM'

Server MPM: Prefork

-D APACHEMPMDIR="server/mpm/prefork"

StartServers 1

MinSpareServers 3

MaxSpareServers 6

ServerLimit 24

MaxClients 24

MaxRequestsPerChild 3000

Any other suggestions?

Thanks in advance for any help

Set MaxClients low enough that you won't run out of memory if you actually have that many connections; run a tool like ab if you want to simulate load. Remove unneeded modules, and set up a lightweight reverse proxy if need be. Don't forget to make sure it's actually Apache that's using all your memory!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct