Error 324: empty response to an application hosted by AWS

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

I get this error on my Amazon EC2 server. This does not happen on a specific page of my website. I don’t think this is a Chrome browser error, because when I open the safari, I don’t get the error, I get a white page. Not sure what is happening or why. Basically, I am looking for the main causes of this server error. Any ideas would be highly appreciated. If you need me to provide any specific information, let me know.

Think about it, this error occurred when upgrading to mongo php driver 1.2.7. Thoughts?

+5
source share
3 answers

Troubleshoot curlfrom the command line. For example, http://aws.amazon.com/

$ curl -i http://aws.amazon.com/
HTTP/1.1 200 OK
Date: Tue, 08 May 2012 19:55:14 GMT
Server: Server
x-amz-id-1: 0C8YK9MYJMCCSE8R09E5
x-amz-id-2: zx0HtU9Ub39tobXNBiMRLuE2mvnhQo4Kh1fyj0MdJcg=
Cache-Control: max-age=0
Expires: Tue, 08 May 2012 19:55:14 GMT
Content-Type: text/html; charset=UTF-8
Set-cookie: aws-session-id-time=2082758401l; path=/; domain=.amazon.com; expires=Tue, 01-Jan-2036 00:00:01 GMT
Set-cookie: aws-session-id=000-0000000-0000000; path=/; domain=.amazon.com; expires=Tue, 01-Jan-2036 00:00:01 GMT
Vary: User-Agent
Transfer-Encoding: chunked
...

-i . , access_log error_log.:)

, !

+3

. curl HTML, .

Session Stickiness AWS LoadBalancer, .

@ curl :)

: , ? . !

0

, - , @ . , Amazon Elastic Load Balancer 60- -. .

https://forums.aws.amazon.com/thread.jspa?threadID=33427&start=0&tstart=50

"" , HTTP-. ELB .

, php, , -. , GZIP - (apache ).

script , 64 000 . , , , - .

You also do not need to call this function often. You have 60 seconds, I usually try to make mine work every 10-15 seconds, but since she sleeps for one second, do not call her too often or you will see a significant slowdown on your page.

Here's the function:

function ELB_HeartBeat(){
echo str_repeat(' ',1024*64);

ob_implicit_flush(true);
while ( @ob_end_flush() );

@flush();
@ob_flush();

sleep(1); }
0
source

All Articles