Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

All the time my apache2 runs out of memory, I have 6 sites running on it.

My server specs are:

2 gig ram, 6 core processor, 60 gb hard drive, and a 1000 mb/s how can I sort the problem out? it crashes the whole server :(

Screenshot: screenshot showing apache's out of memory errors

share|improve this question

This is not to do with Apache, but is to do with the sites you are running from it.

Either you have a memory leak in the software you are running, or you are a victim of your own success and are attracting too many concurrent visitors for the server resources you have.

So the possible avenues of attack are :

  • Test for memory leaks
    • Repeated requests should not lead to slowly increasing memory consumption
  • Limit the number of concurrent sessions by reconfiguring your app / web server
  • Increase the amount of RAM in your server
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.