Is it possible to have high memory utilization if autoflush_log
is set to true?
I have a custom production environment(staging) setup like this
require Rails.root.join("config/environments/production")
Calamus::Application.configure do
config.action_mailer.default_url_options = {:protocol => 'https', :host => xx.xx.xx.xx }
end
This was logging the sql statements. so I set the log level to info
config.log_level = :info
But adding the above line resulted in unicorn processes taking too much memory and the machine was running very high on memory
When I added this line
config.autoflush_log = false
The memory utilization became normal.
Can anyone see the connection? Why would autoflushing
cause high memory utilization?