Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.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
APACHE、PHP服务器随机返回空响应_Php_Apache_Ubuntu_Amazon Ec2 - Fatal编程技术网

APACHE、PHP服务器随机返回空响应

APACHE、PHP服务器随机返回空响应,php,apache,ubuntu,amazon-ec2,Php,Apache,Ubuntu,Amazon Ec2,我有9台ubuntu服务器(EC2)在ELB后面工作, 服务器似乎随机响应空响应,即使请求不是从ELB发送的 Apache监视器上未捕获任何错误日志, 没有特殊超时,或者访问日志中捕获了408, 都返回状态200 我能看到的带响应的请求和带空响应的请求之间的唯一不同之处是标头,它: 良好响应标题: Cache-Control: no-cache, must-revalidate Connection: close Content-Length: 3 KBytes Co

我有9台ubuntu服务器(EC2)在ELB后面工作, 服务器似乎随机响应空响应,即使请求不是从ELB发送的

Apache监视器上未捕获任何错误日志, 没有特殊超时,或者访问日志中捕获了408, 都返回状态200

我能看到的带响应的请求和带空响应的请求之间的唯一不同之处是标头,它:

良好响应标题:

Cache-Control:      
no-cache, must-revalidate
Connection:     close
Content-Length:     3 KBytes
Content-Type:       application/json
Date:       
2014 Oct 10 17:41:39-15s
Expires:        Mon, 26 Jul 1997 05:00:00 GMT
Server:     Apache/2.2.22 (Ubuntu)
X-Powered-By:       PHP/5.3.10-1ubuntu3.13
Connection:     close
Content-Encoding:       gzip
Content-Length:     20 Bytes
Content-Type:       application/json
Date:       
2014 Oct 10 17:41:26-13s
Server:     Apache/2.2.22 (Ubuntu)
Vary:       Accept-Encoding
X-Powered-By:       PHP/5.3.10-1ubuntu3.13
错误响应标题:

Cache-Control:      
no-cache, must-revalidate
Connection:     close
Content-Length:     3 KBytes
Content-Type:       application/json
Date:       
2014 Oct 10 17:41:39-15s
Expires:        Mon, 26 Jul 1997 05:00:00 GMT
Server:     Apache/2.2.22 (Ubuntu)
X-Powered-By:       PHP/5.3.10-1ubuntu3.13
Connection:     close
Content-Encoding:       gzip
Content-Length:     20 Bytes
Content-Type:       application/json
Date:       
2014 Oct 10 17:41:26-13s
Server:     Apache/2.2.22 (Ubuntu)
Vary:       Accept-Encoding
X-Powered-By:       PHP/5.3.10-1ubuntu3.13

有什么想法吗?

@PaulCrovella联系AWS支持部门没有意义。这个应用程序在EC2中运行的事实是不相关的,因为OP说即使ELB不在循环中,它也会发生。OP在应用程序的代码或正在使用的库中有一个bug。经过深入调试后,我发现我使用的一个SDK中有一些die()。。导致应用程序在使用此SDK时在加载时死亡。。