Is it possible to have a high memory load if the parameter is autoflush_logset to true?
I have a custom production environment (intermediate) setup similar to 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 the registration of sql statements. so I set the log level to information
config.log_level = :info
But adding the above line made the unicorn processes take up too much memory and the machine ran very high in memory
And then I added this line
config.autoflush_log = false
And memory usage has become normal.
Can anyone see the connection? Why autoflushinglead to excessive memory usage?