使Apache的响应时间日志指令的性能的影响 [英] Performance effect of enabling apache response time log directive
问题描述
什么影响将会使响应时间(%D)LogFormat指令对Apache的性能?
What affect will enabling the response time (%D) LogFormat directive have on apache performance?
的响应时间是服务于微秒的请求所花费的时间。
The response time is the time taken to serve a request in microseconds.
响应时间可以像这样被启用:
Response time can be enabled like so:
#LogFormat "%h %l %u %t \"%r\" %>s %b" # Default LogFormat
LogFormat "%h %l %u %t \"%r\" %>s %b %D" # LogFormat including response time
我已经写了监测和分析后端脚本性能的工具,
Apache的响应时间,这就要求响应时间数据。我想提醒潜在用户如何启用这个指令将影响Apache服务器的性能。
I have written a tool for monitoring and analysing backend script performance, apache-response-time, which requires response time data. I would like to warn potential users how enabling this directive will affect apache server performance.
推荐答案
也许不值得考虑的HTTP响应方面 - 只有1 ADDL的gettimeofday()调用(和几个函数调用)的开销,所以东西的顺序几微秒。阿帕奇已经注意到同样的事情时请求到达。
Probably not worth considering in terms of HTTP responses -- only the overhead of 1 addl gettimeofday() call (and a few function calls) so something on the order of a few microseconds. Apache already notes the same thing when the request arrives.
<一个href=\"http://www.atl.lmco.com/projects/QoS/POSIX_html/index.html\">http://www.atl.lmco.com/projects/QoS/POSIX_html/index.html列出gettimeofday的一些老微基准()本身。
http://www.atl.lmco.com/projects/QoS/POSIX_html/index.html lists some old microbenchmarks of gettimeofday() itself.
这篇关于使Apache的响应时间日志指令的性能的影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!