Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How much memory (RAM) would the average LAMP production server use, assuming little-to-no traffic, barebones except Apache2, PHP 5.3, MySQL5 installed and running?

share|improve this question
How long is a piece of string? Seriously, this is a really ambiguous question because it takes absolutely no consideration of configuration. Are you talking with no PHP software like Wordpress, Magento or such installed? How much data will MySQL have and will it be setup to use more memory and threads of the CPU it's running on? How many Apache threads? This can vary between installations. – squeeks May 22 '10 at 15:32
I did mention "barebones except Apache2, PHP 5.3, MySQL5 installed and running". No wordpress, no Magento, no nada. Just wanted to know what the norm for a setup like this is because I'm seeing about 300MB used just running on idle with <10 visitors daily. Not sure if that's normal or not. – Calvin May 23 '10 at 12:39
Barebones LAMP stack installed with defaults at 300MB is normal. – thinice Jan 22 '12 at 22:31
up vote 5 down vote accepted

My default is 4GB right now for all server roles because memory is cheap. For a low usage server with hardy anything running using that software, you could probably get away with <1GB. If you're that concerned about the cost of RAM, it will be worth your time to test your RAM usage. Otherwise, just get 4GB and you're almost guaranteed to be fine.

share|improve this answer
Thanks Warner, that's useful information – Calvin May 23 '10 at 12:41

I really depends on usage but I run that lot in 240Mb without any problems. Is the 300Mb all processes or mostly disk cache and buffers? Linux will keep using memory for disk cache till it is all gone.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.