[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#485413: apache2/lenny/amd64 eats up all RAM



On Monday 15 August 2011, Thorsten Glaser wrote:
> Can please someone recommend a different ulimit,
> or some other suggestion?

You could provide some more information:
- How much memory does your machine have, how much is actually 
available for apache (i.e. not used by other processes).
- Which MPM do you use?
- What are your settings for StartServers, MaxRequestsPerChild, 
ThreadsPerChild, MinSpareThreads/MinSpareServers, 
MaxSpareThreads/MaxSpareServers
- How large do the apache2 processes grow? (RSS) How quickly do they 
grow?
- How many apache2 are running during normal operation?


Tune the above settings. If processes grow slowly, you may be hitting 
a memory leak. Setting MaxRequestsPerChild to non-zero (e.g. to 500) 
may help.

If that doesn't help, try setting 'MaxMemFree 4'. If that doesn't help 
enough, add 'export MALLOC_MMAP_THRESHOLD_=8000' to 
/etc/apache2/envvars (the trailing underscore is not a typo). These 
options lower performance, though.

Please report back about the results.



Reply to: