« Nginx下WordPress的Rewrite Apache的prefork模式和worker模式 »

Apache Server Status解读之Logging

最近公司应用服务器流量激增,对服务器的优化和检测也在不断的进行,有不少优化的心得,有时间一点一点写出来。

在查看其中一台服务器的Apache Server Status(如何开启Apache Server Status点这里)信息的时候,发现有非常多的Logging,先说解决方法,关闭Apache的日志之后,问题解决。

也就是说Server Status中的Logging状态表示的是记录日志中,如果出现很多的Logging状态,就意味着Apache在处理日志信息占去了很多一部分资源,建议关闭日志,如果需要的话,可以使用更高性能的独立硬盘来记录。

当每天一台服务器每天的日志请求数目,达到五百万以上,或者更高级别,比如千万级别的时候,就应该考虑采用关闭日志等方式来避免Apache在日志上消耗更多的性能。

写完又发现很无趣,顺手贴下,当时的Apache Server Status
Current Time: Monday, 18-Aug-2008 14:29:05 CST
Restart Time: Monday, 18-Aug-2008 14:27:24 CST
Parent Server Generation: 2
Server uptime: 1 minute 40 seconds
Total accesses: 25070 - Total Traffic: 118.5 MB
CPU Usage: u26.1 s7.11 cu0 cs0 - 33.2% CPU load
255 requests/sec - 1.2 MB/second - 4955 B/request
113 requests currently being processed, 65 idle workers

“Apache Server Status解读之Logging”

4条回复
  1. 我在等你写的第二篇

  2. 还是比较有用的,记录下,我就一直看不太明白Server Status。

    期待下一篇。

  3. 下一篇咋还没出来,大半夜的不容易啊。

  4. 好文章,收藏

回复留言

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

你可以使用XHTML标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>