How to Automatically Kill Applications Using Excessive CPU or RAM

cpukillram

What i need from my computer, now that it's summer at least, should never use a lot of resources – when applications do so it's because of some kind of bug or memory leak.

Is there any way to automatically kill any application that uses, for example, more than 15% of the CPU or more than 450 mbs of RAM?

I would like to use this trick, if it's possible, at either 11.04 or 11.10.

Best Answer

If I were worried about high cpu usage I would do what supercomputer admins do and use cpulimit also stay away from the main offenders, continually updating websites,flash and coverting or watching video and things should stay fairly stable.

Hope this helps.

Related Question