apache - Apache 访问日志中的 %D 字段 - 第一个字节还是最后一个字节?

标签 apache logging access-log

Apache Httpd 手册有一节关于 custom access log formats .这些选项之一是 %D字段,记录为

The time taken to serve the request, in microseconds.



谁能告诉我这到底是在测量什么?例如,它是到第一个字节的时间,还是到最后一个字节的时间,还是比这更复杂的东西?

我需要这是证明符合性能要求,我想确切地知道这里测量的是什么。

最佳答案

这是最后一个字节,或者更确切地说,apr_time_now() - request_rec->request_time这是在记录阶段制定的。在发送响应之后,该阶段发生在处理周期的最后一个阶段。

关于apache - Apache 访问日志中的 %D 字段 - 第一个字节还是最后一个字节?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4735032/

相关文章:

apache - 在 Apache Solr 中设置默认搜索字段

apache - PHP 站点未显示缓存控制。不缓存任何东西

google-app-engine - 云日志高级日志过滤器 : Find HTTP Requests >= Duration

python - python日志记录是否在它自己的线程中运行?

java - spring boot框架下如何过滤tomcat生成的访问日志

linux - nginx 从包含特定值的 access_log 中删除 POST

php - 有人知道任何好的后端用户在线文件管理器吗?

使用 ProxyPass 后 apache 请求非常慢

logging - GO lang日志包的局限性

php - apache访问日志高字节大小返回给客户端