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...


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).

  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.