[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [EXTERNAL] Restart apps based on total system CPU usage
From: |
Faine, Mark R. (MSFC-IS40)[NICS] |
Subject: |
RE: [EXTERNAL] Restart apps based on total system CPU usage |
Date: |
Wed, 17 Feb 2021 21:51:00 +0000 |
Here's a script that kills the highest cpu process if the system resources are
above a certain threshold. You can probably adapt it to your needs.
https://gist.github.com/markfaine/d54667b78ffc81ba686894065e533fa5
Doing this in general is a little dangerous, I only use this on a local
personal server, so tread carefully.
-Mark
From: monit-general <monit-general-bounces+mark.faine=nasa.gov@nongnu.org> On
Behalf Of Mike D
Sent: Wednesday, February 17, 2021 14:46
To: This is the general mailing list for monit <monit-general@nongnu.org>
Subject: [EXTERNAL] Restart apps based on total system CPU usage
Hello,
I'm trying to locate documentation on restarting a given application based on
the CPU usage of the total system. I'm having trouble finding an example
similar to that.
Is it possible? Does anyone have any ideas?
Thanks,
Mike
- Restart apps based on total system CPU usage, Mike D, 2021/02/17
- RE: [EXTERNAL] Restart apps based on total system CPU usage,
Faine, Mark R. (MSFC-IS40)[NICS] <=
- Re: [EXTERNAL] Restart apps based on total system CPU usage, Mike D, 2021/02/17
- Re: [EXTERNAL] Restart apps based on total system CPU usage, Lutz Mader, 2021/02/18
- Re: [EXTERNAL] Restart apps based on total system CPU usage, Mike D, 2021/02/18
- Re: [EXTERNAL] Restart apps based on total system CPU usage, Lutz Mader, 2021/02/18
- Re: [EXTERNAL] Restart apps based on total system CPU usage, Mike D, 2021/02/18
- Re: [EXTERNAL] Restart apps based on total system CPU usage, Lutz Mader, 2021/02/18