大量未解释的 IO 写入
我用 CentOS 5.7 运行一个网络服务器。它运行 nginx 和 php-fpm。我在上面运行一个繁忙的网站(每天 50 万个独立网站)。这台服务器上创建的文件不多,大概每分钟20个,而且都是几KB的小文件。
运行 iotop 和 iostat 我注意到我有很多 io 写入,远多于读取。
iostat-> http://pastebin.com/raw.php?i=YHtDSTSP iotop-> http://pastebin.com/raw.php?i=yiAyhSbP
表明Nginx工作进程正在执行大部分写入操作。但我不明白nginx要写这么多干什么。有时高达每秒 15MB。
我已经设置:
access_log off;
error_log /var/log/nginx.log crit;
我还检查了 /var/log 中的所有其他日志,没有任何内容可以解释这么多写入。
知道会发生什么吗?
i run a webserver with CentOS 5.7. It runs nginx and php-fpm. I run a busy website (500k unique a day) on it. Not many files are created on this server, maybe 20 per minute, and all small files of a few KB.
Running iotop
and iostat
I noticed that I am having A LOT of io writes, way more than reads.
iostat - > http://pastebin.com/raw.php?i=YHtDSTSP
iotop -> http://pastebin.com/raw.php?i=yiAyhSbP
It shows that Nginx Worker Processes are doing most of the writes. But I do not understand what nginx has to write so much for. Up to 15MB per second sometimes.
I have set:
access_log off;
error_log /var/log/nginx.log crit;
I also checked all other logs in /var/log, nothing that is accounting for this many writes.
Any idea what might be going on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过真正禁用访问日志解决了这个问题。
solved it by really disabling the access log.