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.

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

1 Answer 1

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

 
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.