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: Ismo Tanskanen
Subject: Re: [monit] Monitor process that is not allways running
Date: Thu, 04 Dec 2008 21:11:52 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

Jan-Henrik Haukeland kirjoitti:

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


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Thanks, this really helped. Now I must find out why mythtranscode does this occasionally..

- Ismo




reply via email to

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