Rootop 服务器运维与web架构

[notice] child pid xxx exit signal File size limit exceeded (25)

| 暂无评论

    从google上找到的资料解释,说是apache的日志文件大于2GB,不能处理。

This error indicates that Apache is trying to handle a file which exceeds the maximum permitted filesize. I needed to fix this quickly this evening on an Apache box, but I have proper rotation on all access and error logs, so couldn’t work out where the sink was.. Eventually it turned out to be the rewrite log.

Don’t let this happen to you. Be sure to rotate all apache’s logs properly, otherwise you essentially leave your Apache installation open to DOS attacks. It might take a lot of requests to create 2GB of Apache rewrite logs (and in this case it did!), but on a heavily SEO’d site with a high Rewrite Log Level value in Apache, it *will happen sooner or later.

最好是对apache的访问及错误日志进行日志分割,每天一新日志。

apache日志分割:https://www.rootop.org/?p=373

PS:find的简单两个用法:

find / -size +1000000k     find / -name test.sh

以大小搜索文件                    以文件名搜索文件

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/907.html

作者:Venus

服务器运维与性能优化

发表回复