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.

There are examples for how to make Monit detect a service going amok and use too much RAM. But what if the service forks a program and the child takes too much RAM?

Or put another way, how can I make Monit detect and act on any random process which is spawned and starts eating all the RAM. Before the evil OOM starts killing processes left and right...

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Excerpt from man monit

TOTALMEMORY is the memory usage of the process and its child processes in either percent or as an amount (Byte, kB, MB, GB).

share|improve this answer
    
Well, that only seems to work when you have specified a specific process or service. Not just any random process popping into existence. –  Prof. Falken Jun 14 '11 at 16:57

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.