in reply to Monitoring the death of oversized Perl processes

Make a script that run once every minute, it will have to parse the output of top -c -n 1 command and kill the scripts that uses too much memory and log some useful info in some file

Replies are listed 'Best First'.
Re^2: Monitoring the death of oversized Perl processes
by arthurg (Acolyte) on Mar 06, 2010 at 23:22 UTC
    Interesting, but not reliable. By the time a 'KillerScript' runs an oversized process could freeze the system so that top wouldn't run. In any case, an application should be able to control it's children processes more directly.