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

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


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.