monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Monitor process that is not allways running


From: Jan-Henrik Haukeland
Subject: Re: [monit] Monitor process that is not allways running
Date: Thu, 04 Dec 2008 16:20:06 +0100


On 4. des.. 2008, at 15.57, Ismo Tanskanen wrote:

Now, I have noticed that I have one problematic process, Mythtranscode, what sometimes starts use a huge amount of memory, what causes system to come extra slow. Problem is, that mythtranscode is not allways running, only when mythbackend calls it.

What I want to do, is just check if process is running, and if it is eating a lot of memory, then kill it.

Is mythtranscode started by mythbackend? If so and as a hack you can test mythbackend like so:

if totalmemory > X MB then exec "/script/to/mythtranscode stop"

Total memory include the current process (mythbackend) and its children (mythtranscode).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]