mak*_*ker 5 apache performance logging monitoring response-time
什么影响将启用响应时间(%D)LogFormat指令对apache性能?
响应时间是以微秒为单位提供请求所用的时间.
可以像这样启用响应时间:
#LogFormat "%h %l %u %t \"%r\" %>s %b" # Default LogFormat
LogFormat "%h %l %u %t \"%r\" %>s %b %D" # LogFormat including response time
Run Code Online (Sandbox Code Playgroud)
我编写了一个用于监视和分析后端脚本性能的工具,即 apache-response-time,它需要响应时间数据.我想警告潜在用户如何启用此指令将影响Apache服务器性能.
在HTTP响应方面可能不值得考虑 - 只有1 addl gettimeofday()调用(以及一些函数调用)的开销,所以大约几微秒.当请求到达时,Apache已经注意到了同样的事情.
http://www.atl.lmco.com/projects/QoS/POSIX_html/index.html列出了gettimeofday()本身的一些旧的微基准测试.
归档时间: |
|
查看次数: |
6292 次 |
最近记录: |