请帮忙解决这个问题。有:RabbitMQ - 3.7.2 Erlang - 20.1
配置:
disk_free_limit.absolute = 5GB
log.default.level = warning
log.file.level = warning在日志中经常会出现这样的消息:
11:42:16.000 [warning] <0.32.0> lager_error_logger_h dropped 105 messages in the last second that exceeded the limit of 100 messages/sec
11:42:17.000 [warning] <0.32.0> lager_error_logger_h dropped 101 messages in the last second that exceeded the limit of 100 messages/sec
11:42:18.000 [warning] <0.32.0> lager_error_logger_h dropped 177 messages in the last second that exceeded the limit of 100 messages/sec怎样才能正确地摆脱它们?如何从日志中删除此消息?
发布于 2018-03-31 18:25:50
RabbitMQ团队监视 mailing list,有时只回答StackOverflow上的问题。
该消息意味着RabbitMQ正在生成大量错误消息,为了避免快速填充日志,将删除这些错误消息。如果“在最后一秒钟丢弃X消息”是您在日志中看到的唯一消息,则需要确定要删除的消息是什么,以找到问题的根源。可以通过运行以下命令临时提高此限制:
rabbitmqctl eval '[lager:set_loghwm(H, 250) || H <- gen_event:which_handlers(lager_event)].'然后,您应该会看到更多的消息,这些消息将揭示潜在的问题。若要恢复到前面的设置,请运行以下命令:
rabbitmqctl eval '[lager:set_loghwm(H, 50) || H <- gen_event:which_handlers(lager_event)].'https://stackoverflow.com/questions/49552879
复制相似问题