Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows上的Apache 2.4在空闲后挂起20秒_Apache - Fatal编程技术网

Windows上的Apache 2.4在空闲后挂起20秒

Windows上的Apache 2.4在空闲后挂起20秒,apache,Apache,我在笔记本电脑上的Windows10VM上运行Apache。如果我的Apache服务器闲置了一段时间,大约5分钟,那么我的下一个请求大约需要20秒。后续请求需要毫秒。对于所有Apache请求,甚至是图像和404,都会发生这种情况。我设置了我的日志级别跟踪6,试图找出发生了什么 下面的日志输出是针对这些慢速请求之一的。你可以看到第12行比前一行延迟了20秒。看来这个问题与授权有关。我还包括mod_authz_core.c模块的服务器状态的配置输出。我没有启用主机名查找 我也试过设置 AcceptF

我在笔记本电脑上的Windows10VM上运行Apache。如果我的Apache服务器闲置了一段时间,大约5分钟,那么我的下一个请求大约需要20秒。后续请求需要毫秒。对于所有Apache请求,甚至是图像和404,都会发生这种情况。我设置了我的日志级别跟踪6,试图找出发生了什么

下面的日志输出是针对这些慢速请求之一的。你可以看到第12行比前一行延迟了20秒。看来这个问题与授权有关。我还包括mod_authz_core.c模块的服务器状态的配置输出。我没有启用主机名查找

我也试过设置

AcceptFilter http none
AcceptFilter https none
这通常被认为是Windows上速度较慢的Apache的修复方法,但这并没有帮助

1[Thu Aug 10 16:22:04.361111 2017][filter:trace4][pid 3004:tid 1072]mod_filter.c(168):[client 192.168.26.1:63869]Content Type'text/html;字符集=utf-8'。。。
2[Thu Aug 10 16:21:41.705842 2017][core:trace5][pid 3004:tid 1072]protocol.c(643):[client 192.168.26.1:63869]从客户端收到的请求:GET/index.cfm?event=home HTTP/1.1
3[2017年8月10日星期四16:21:41.705842][http:trace4][pid 3004:tid 1072]http_request.c(419):[client 192.168.26.1:63869]从客户端收到的头:
4[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]主机:mydevsite.local
5[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]连接:保持活动状态
6[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]升级不安全请求:1
7[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]用户代理:Mozilla/5.0(Windows NT 10.0;Win64;x64)AppleWebKit/537.36(KHTML,类似Gecko)Chrome/60.0.3112.90 Safari/537.36
8[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]接受:text/html、application/xhtml+xml、application/xml;q=0.9,图像/webp,图像/apng,*/*;q=0.8
9[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]接受编码:gzip,deflate
10[2017年8月10日星期四16:21:41.705842][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]接受语言:en-US,en;q=0.8
11[Thu Aug 10 16:21:41.705842 2017][http:trace4][pid 3004:tid 1072]http_request.c(422):[client 192.168.26.1:63869]Cookie:blah blah删除
12[2017年8月10日星期四16:22:02.716531][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:要求所有授予的授权结果:授予
13[2017年8月10日星期四16:22:02.716898][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授权结果:已授予
14[Thu Aug 10 16:22:02.716898 2017][core:trace3][pid 3004:tid 1072]request.c(291):[client 192.168.26.1:63869]未经访问检查程序验证而授权的请求:/index.cfm
15[2017年8月10日星期四16:22:02.737002][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:要求所有授予的授权结果:授予
16[2017年8月10日星期四16:22:02.737002][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授权结果:已授予
16[Thu Aug 10 16:22:02.737002 2017][core:trace3][pid 3004:tid 1072]request.c(291):[client 192.168.26.1:63869]未经访问检查程序验证而授权的请求:/index.htm
18[2017年8月10日星期四16:22:04.249955][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:要求所有授予的授权结果:授予
19[2017年8月10日星期四16:22:04.249955][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授权结果:已授予
20[Thu Aug 10 16:22:04.249955 2017][core:trace3][pid 3004:tid 1072]request.c(291):[client 192.168.26.1:63869]请求未经访问检查程序验证而授权:/views/home.cfm
21[2017年8月10日星期四16:22:04.288220][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:要求所有授予的授权结果:授予
22[Thu Aug 10 16:22:04.288220 2017][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授权结果:已授予
23[Thu Aug 10 16:22:04.288220 2017][core:trace3][pid 3004:tid 1072]request.c(291):[client 192.168.26.1:63869]请求未经访问检查程序验证而授权:/views/header.cfm
24[2017年8月10日星期四16:22:04.305888][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:要求所有授予的授权结果:授予
25[2017年8月10日星期四16:22:04.305888][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授权结果:已授予
26[Thu Aug 10 16:22:04.305888 2017][core:trace3][pid 3004:tid 1072]request.c(291):[client 192.168.26.1:63869]请求未经访问检查程序验证而授权:/views/navigation.cfm
27[2017年8月10日星期四16:22:04.324906][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授予所有请求的授权结果:授予
28[2017年8月10日星期四16:22:04.324906][authz_core:debug][pid 3004:tid 1072]mod_authz_core.c(806):[client 192.168.26.1:63869]AH01626:授权结果:已授予
29[2017年8月10日星期四16:22:04.324906][core:trace3][pid 3004:tid 1072]request.c(291):[client 192.168.26.1:63869]request author