Hmmm, interesting perspective, thank you. The reason I was thinking of doing it this way is because we have a couple of users who use a mathematical program that will run away with all the 32Gb of RAM the server has if left running unattended. Then my boss now wants that ANY single process that uses up as much more than 8Gb of RAM be killed so they don't risk taking the server down with them.
I don't think init will ever use that much memory so we are probably safe, don't you think? Would you know how that could be coded in monit.conf ? Can I use maybe a wildcard perhaps somewhere? Thank you, Fabiano > Fabiano R. Prestes a écrit : >> Hi people, how are you? >> >> I have been searching without much luck for an example of how to use >> monit >> to monitor all processes memory usage and automatically kill the ones >> that >> go over a certain limit (say 25%). Is that possible? >> > Be carefull, if init (process #1) is up to 25%, it will kill all processes > like a shutdown... > Strange idea... It is very dangerous to do so, even it could be done with > monit. > the first principe of monitoring is to know what you are monitoring... > > Regards > > Fabiano R. Prestes a écrit : >> Hi people, how are you? >> >> I have been searching without much luck for an example of how to use >> monit >> to monitor all processes memory usage and automatically kill the ones >> that >> go over a certain limit (say 25%). Is that possible? >> -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
