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 server that recently got knocked offline when when a blog article hosted on the box made the front page of Hacker News. From what I've heard, it seems like the server became unresponsive when it ran out of memory from the deluge of requests.

Does anyone know if there's a way to configure the system to notify me somehow when memory usage gets really high, so that I can start to scale out the system or shut off some processes?

I'm certainly not that experienced with this stuff, but a quick Google search turned up nothing. Let me know if I'm way off base or there's a better monitoring solution. Thanks!

share|improve this question
    
You want to know if your server isn't responding or isn't responding well. Don't try to look for memory usage specifically. (Except perhaps in addition to basic response monitoring.) –  David Schwartz Jan 27 '12 at 19:30
add comment

1 Answer 1

up vote 4 down vote accepted

Sure, any decent monitoring solution will do that.

The real solution, though, is to configure your webserver (and database server as well, if they're on the same host) so that they can't use up all available memory.

In addition to a monitoring/notification system, you ought to have something like Munin running as well. Munin can do some rudimentary notifications, but its core competency is collecting data on your system and graphing it. Munin makes it very easy to, at a glance, get a read on how your system is performing.

share|improve this answer
add comment

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.