我在几天内遇到了服务器磁盘溢出。在它满了 10% 之前。原因是文件newrelic_agent.log
大小为 5 - 30 GB 的文件。nginx
我在文件夹site-enabled
和应用程序的主目录中发现了这么大的文件node.js express
。
{"name":"newrelic","hostname":"hostname","pid":355,"component":"redis","level":10,"msg":"Adding Redis command trace segment transaction 2769.","time":"2014-01-02T06:20:11.894Z","v":0}
{"name":"newrelic","hostname":"hostname","pid":355,"component":"redis","level":10,"msg":"Adding Redis command trace segment transaction 2769.","time":"2014-01-02T06:20:11.894Z","v":0}
{"name":"newrelic","hostname":"hostname","pid":355,"component":"redis","level":10,"msg":"Adding Redis command trace segment transaction 2769.","time":"2014-01-02T06:20:11.895Z","v":0}
在我删除这些文件后,我在一天之内又找到了它们,它们的大小如此可怕。
如何在服务器上禁用此日志记录?我认为这是因为newrelic redis 的关键插件。或者唯一的方法是关闭这个插件?