In general, this situation may be due to the Nginx default fastcgi process response buffer too small, which will cause the fastcgi process to be suspended, if your fastcgi service to this suspend processing is not good, then it is very likely to cause the 504 Gateway Time-outNow the site, especially some forums have a lot of replies and a lot of content, a page e
In general, this situation may be due to the Nginx default fastcgi process response buffer too small, which will cause the fastcgi process to be suspended, if your fastcgi service to this suspend processing is not good, then it is very likely to cause the 504 Gateway Time-outNow the site, especially some forums have a lot of replies and a lot of content, a page e
Action (8): Error-26608:http status-code=504 (Gateway time-out)
If a problem arises,1. Tools in VUser Generator--->recording Options ...--->recording--->http-based script--->html Advanced button---> select a in the script type a script containing explicit URLs only (e.g.web_url,web_submit_data) click "OK"2.runtime-setting, browser emulation, deselect download no
http://blog.csdn.net/tmpbook/article/details/43734699
Analysis
504 Gateway Time Out
The reason is that because of the improper setting of the relevant parameters, it is easy to solve
When Nginx and UWSGI are integrated, there are three parameters that can be used to set the timeout time:
1.uwsgi_connect_timeout:
123systems VPS Put there for a long time no use, just W2 was stopped a few days, really boring, want to put the beautiful picture or put on the top, so, direct card wipe reload the 123systems VPS system, the small memory of the cutter, nature does not get the panel, direct LNMP, As a result, unexpected problems arose.
VPS Installation Lnmpa All the way smoother, seemingly long time, spent 2 hours or so (he
Method of solving Nginx 504 Gateway time-out
Application is NGINX+TOMCAT7
According to this error, it is because Tomcat did not respond to nginx in time, resulting in errors.
First use fiddler to grab the page's request.
Find the 504 request. Then find out why.
Because
Yesterday, a program needs to export 500 data, the result found that 150 is, Nginx reported 504 Gateway timeout error
After observation, it was found that about 30 seconds timed out, the execution time in php.ini is 300 seconds:
Copy Code code as follows:
Max_execution_time = 300
Check the related configuration of nginx, no fruit.
wrote
Reprint article Source: http://www.111cn.net/sys/nginx/90669.htm (if invasion delete)
Nginx Newspaper 504 Gateway Timeout error caused, one is the file configuration problem, the other is related to the length of processing, and finally there may be insufficient resources, the following we look at.
Explained as follows:
Recently in the work, the need to do Excel import function, because of the Excel data
Recently in the work, the need to do Excel import function, because of the Excel data is more, and our server program needs to check the content of the data, will call a lot of external service interface, so no suspense import Excel interface call more than a minute, and error: 504 Gateway Timeout Here are two ways to solve this problem:
1. Optimize business code
An interface called for more than a minute
Yesterday, a program needs to export 500 data, the results found that 150 is, Nginx reported 504 Gateway timeout errorIt was observed that time-outs of about 30 seconds were found, and the execution times in php.ini were 300 seconds:Copy CodeThe code is as follows:Max_execution_time = 300Re-check the relevant configuration of nginx, no fruit.I wrote a test page f
In the past few days, I have no idea how many students in our school can visit the official website, rather than visiting the educational administration network.
In normal cases, this is even the case. After all, there are not a few people logging on. Do you really want to see what you love?
However, the days that people on earth know are inaccessible, and they know how many students are involved in these days.
Do you know how many people are looking forward to the score of the final exam?
Haha
/home/www/uninum/web.php on line 50PHP message:php notice:trying to get property of Non-object in xxx.php on line ' while reading response headers from U PstreamSync Settings file_get_contents TimeoutPHP file_get_contents Get file timeout processing and post and multiple retries$opts Array ( ' http ' = =array( ' method ' = "GET", ' timeout ' =>300, ) ); $context stream_context_create ($opts); $html =file_get_contentsfalse$contextPHP query database is slow,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.