0
votes
1answer
113 views

Kill or revive a process based on system memory usage

Consider a system with limited memory, like a smallish VPS. Suppose there are a handful of processes that need to stay alive, and one process "P" that would be nice to have around, but is not ...
1
vote
1answer
495 views

What does monit consider to be memory usage?

Once can have monit monitor memory usageā€¦ check system foo if memory usage > 95% then alert Does it use free RAM, or free -/+ buffers/cache? (or something else?) # free -m total ...
3
votes
1answer
1k views

Monit is restarting apache2, should I fix the monit config, or the server config?

Monit is restarting apache2 frequently, based on the totalmem > 200m test in my apache2 stanza. I'm not sure that I actually have a problem, or if I should increase the totalmem test in my monit ...