前提:启用httpd.conf配置文件里的两个模块:|
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
本文我们将讨论使用 mod_status 和 mod_info to 来告诉你目前服务器的工作情况
我可以得到什么样的信息?
使用 mod_status,你可以知道谁在你的服务器上看些什么东西,以及有多少人连在Web 服务
Browsing the archives for the apache优化 tag
前提:启用httpd.conf配置文件里的两个模块:|
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
本文我们将讨论使用 mod_status 和 mod_info to 来告诉你目前服务器的工作情况
我可以得到什么样的信息?
使用 mod_status,你可以知道谁在你的服务器上看些什么东西,以及有多少人连在Web 服务
我有个服务是在windows下的Apache2提供的。访问量不是很大,隔4、5天竟然停止服务,
调查发现Apache2的进程httpd.exe占用内存达到了1.5G。在网上找到如下解决办法。
用记事本打开apache2\conf\httpd.conf,查找MaxRequestsPerChild,将MaxRequestsPerChild 0改成MaxRequestsPerChild 50即可。
原因是:
windows2003下APACHE2.2.8优化配置手记。
一、按照日期自定义apache日志
LogFormat “%v %l %u %t \”%r\” %>s %b” comonvhost
CustomLog “|bin/rotatelogs.exe -l D:/apache/logs/access/%Y-%m-%d.log 86400″ common
Errorlog “|bin/rotatelogs.exe -l D:/apache/logs/error/%Y-%m-%d.log 86400″