Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

God vs. Monit [closed]

Which one to use for process monitoring and why?

like image 559
Milan Novota Avatar asked Apr 20 '09 13:04

Milan Novota


2 Answers

God leaks memory pretty badly so I chose Monit for my VPS. Monit runs at about 2MB of RAM constantly, whereas my god install running on Ruby 1.8.6 leaked out to about 60MB of RAM in about 36 hours. I didn't want to monitor my system monitoring tool so I scrapped God and went over to Monit and have had absolutely no problems.

like image 109
nitecoder Avatar answered Sep 30 '22 13:09

nitecoder


Both solutions are good, and there are some pros and cons for both of them.

God config file is written in Ruby, so you can do basically everything Ruby allows you to do, and it's a lot of stuff. Monit has to be configured using its own syntax, it's usually OK but more restrictive. Anyway, you can also generate monit config with Ruby (as a part of your deployment strategy).

Also, monit uses less resources, so if you're on VPS or just don't have any spare memory, monit could be a better choice. Personally, I prefer god, as it's more configurable.

Here's a very good screencast on god. There's also a lot of feedback in comments to this screencast.

like image 45
Oleg Shaldybin Avatar answered Sep 30 '22 15:09

Oleg Shaldybin