The gem creates a default monit configuration for your application that tries to keep it within sensible limits. You can edit these limits if you find your application breaches them regularly within normal operation.
Note that the way monit checks whether an application is responding is to open an HTTP connection to the application root (ie URL http://localhost/), and it expects to see a 200 OK response. If you redirect the root (30x) or issue a 'not found' (404) then monit will restart the application.
There are several variables available to change how monit checks your application.
You can include slugs, paths and username/passwords as required. Generally the host should always remain 'localhost'.
set :mongrel_check_url, "http://user:password@localhost/path/to/check"
set :mongrel_max_memory, 110
The amount is in megabytes
set :mongrel_max_cpu, 80
The amount is a percentage.
If you change the monit settings, you need to update the setup and reload the monit configuration.
cap deploy:setup cap deploy:monit:reload