Resque和New relic

Dom*_*ker 7 ruby ruby-on-rails heroku resque newrelic

我开始在New Relic和resque中遇到奇怪的错误

INFO : Starting Agent shutdown
ERROR : undefined method `write' for nil:NilClass: Unable to send data to parent process, please see https://newrelic.com/docs/ruby/resque-instrumentation for more information
Run Code Online (Sandbox Code Playgroud)

我按照这里的说明进行操作

在我的新文物控制面板中,我也不再看到任何东西

Mat*_*sel 0

方向最近已更新我相信:report_instance_busy => false已从Resque.before_first_fork移至Resque.after_fork

或者,如果您能够碰到resque>= 1.23.1那么您可以完全删除显式resque挂钩,因为resque链接已被修复并且newrelic_rpmgem 指令不会被其他 gem 覆盖。

如果这些修复不起作用,您可能需要在 newrelic.config 中打开审核日志记录。您只需将此功能打开一小段时间(例如 5 分钟),因为它可能会对应用程序的性能产生不利影响。您可以将其附加到newrelic问题请求中和/或通过自己阅读该文件来找出问题所在。