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