4
它能否在autoflush_log
设置为true,具有较高的内存利用率?高内存占用,autoflushing日志
我有这样
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
这是一个自定义的生产环境(分期)设置为登录的SQL语句。所以我设置了日志级别信息
config.log_level = :info
但加入上述行导致麒麟进程占用过多内存,机器运行内存
非常高,然后我加入这行
内存利用率正常。
任何人都可以看到连接?为什么autoflushing
会导致高内存使用率?
您如何测量内存使用情况? 'config.autoflush_log = false'和'config.autoflush_log = true'之间的内存使用有什么区别?设置'config.autoflush_log = true'应该稍微增加CPU活动,但应该通过不缓冲输出来减少内存使用量。除非您有高活动应用程序,否则更改应该非常少。 – hwatkins