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

I have a Mac mini ram 4GB setup as a web server which has low traffic - it is running single WordPress instance and a forum.

Why is available memory dropping to ~20MB after a while, bringing the whole server down?

I see httpd processes climbing more and more, and the only thing I can do is to restart the server and everything will work fine again.

Anybody with the same issues to share their thought about this?

share|improve this question
up vote 3 down vote accepted

Sounds like your problem is in the PHP or Java (or whatever language) you're using to dynamically create those pages.

The basics are you obviously have an amount of memory per connection and number of connections. If the number of connections is raising continuously then your problem is in why it's not releasing those connections.

Apache by default (and various other web server technologies) will drop a connection after enough time last elapsed if it's inactive, so unless you have more and more people constantly building up on your site then either you disabled this default behavior (unlikely as you would've have to have done it on purpose), or (more likely) there's some infinite loop typoe logic in some code on your pages that is eating up memory and keeping apache thinking the connection is alive.

Review what you've custom coded and google around on any third-party add-ons to see if they have known memory issues. One or the other should solve it.

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.