I've got a controller that I'm using as a check for monit to verify my
website is up and functioning. Right now it just is a simple index
page that just renders success. It seems that overnight, this
controller is leaking memory, to the point that after 8 hours, the
mongrel packs are restarted twice after reaching a 50mb size limit.
There is nothing else running on the site except this monitoring
action, as it's in development.
I've run this in both mongrel and webrick, and they both exhibit the
same behavior, a slow growth over time with no release of memory. The
same issue occurs if I render the string directly (render :text =>
Also, how can I turn off logging for this controller, as every 60
seconds, I get 4 hits in my log file letting me know that the
controller was hit. I stated in a previous post that logger.silence
wasn't working as expected for me, and now that I'm using an rhtml
file, I don't see where I would put the silence command. I tried it
around the render text when I was using that method, but it didn't
Any help is appreciated. Thanks.
class MonitController < ActionController::Base
## this is used by the monitoring scripts to see if the mongrel is
up and running