Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
3  
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 L May 23 '10 at 12:39
    
Barebones LAMP stack installed with defaults at 300MB is normal. –  thinice Jan 22 '12 at 22:31

2 Answers 2

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 L 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

 
discard

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.