Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】
nginx日志报错
2018/01/26 16:36:49 [error] 23327#0: *54953 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.68.16.37, server: 10.70.35.119, request: "POST /ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056 HTTP/1.1", upstream: "http://10.70.35.120:8080/ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056", host: "10.72.35.119", referrer: "http://10.70.35.119/ApprovalManagement.do?method=flowToList&listType=A"
第一个错误,为代理超时
第二个错误,为client发送body size太大了
解决办法(见绿色部分):
server {
listen ;
server_name 10.70.35.119;
#rewrite ^(.*) https://$10.72.16.112$1 permanent;
#rewrite ^(.*) https://$server_name$1 permanent;
location / {
proxy_pass http://jboss;
proxy_redirect off;
proxy_set_header Host $host;
# proxy_set_header Host $proxy_host;
# proxy_set_header Host $host:$server_port;
proxy_hide_header Server;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
client_max_body_size 10m;
client_body_buffer_size 328k;
#proxy_buffering off
proxy_connect_timeout ;
proxy_send_timeout ;
proxy_read_timeout ;
proxy_buffer_size 320k;
proxy_buffers 320k;
proxy_busy_buffers_size 640k;
proxy_temp_file_write_size 640k; }
然后重新加载nginx配置文件
service nginx reload
后续记录,设置完以上俩项后,nginx错误日志还是有以上俩个错误,解决办法增加以下参数设置成600s。client_max_body_size参数大于报错大小,暂不调整。
proxy_connect_timeout ;
proxy_send_timeout ;
proxy_read_timeout ;
转自
nginx proxy超时报错 upstream timed out (110: Connec... - 深海蓝精灵 - 博客园
https://www.cnblogs.com/zhangkaimin/p/4201453.html
Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】的更多相关文章
- nginx 报错 upstream timed out (110: Connection timed out)解决方案【转】
转自 nginx 报错 upstream timed out (110: Connection timed out)解决方案 - 为程序员服务http://outofmemory.cn/code-sn ...
- nginx 报错 upstream timed out (110: Connection timed out)解决方案
nginx 作PHP的web接口服务器. 在线上发现时不时经常崩溃.504,导致接口访问无响应回复. 查看日志: [error] 11618#0: *324911 upstream timed out ...
- xdebug 一直报错 upstream timed out (110: Connection timed out) while reading response header from upstream
本地主机(Windows环境192.168.66.1)访问虚拟机(192.168.66.139)里面的搭建的php环境(系统centos6.5版本,php版本是5.5.30 ,xdebug 2.4.0 ...
- 压测 502 日志报错 upstream timed out (110: Connection timed out)
环境介绍 服务器:centos6.5服务:nginx proxy 问题描述: 压测 开发同事 的开发环境项目没事,但是 线上机器 命中%50 ,大量502 php的某些页面打不开,页面提示gatewa ...
- Nginx Upstream timed out (110: Connection timed out)
Nginx Upstream timed out (110: Connection timed out) – 运维生存时间 http://www.ttlsa.com/nginx/nginx-upstr ...
- nginx 超时问题: upstream timed out (110: Connection timed out) while reading response header from upstream
目录 错误内容 错误原因 错误解决办法 错误内容 我们可以在error.log 里面可以看到 错误内容:upstream timed out (110: Connection timed out) w ...
- upstream timed out (110: Connection timed out) while reading response header from upstream
Nginx报错日志有如下内容: upstream timed out (110: Connection timed out) while reading response header from up ...
- upstream timed out (110: Connection timed out) while reading response header from upstream, client:
遇到的问题 之前没配置下面这段,访问时候偶尔会出现 504 gateway timeout,由于偶尔出现,所以不太好排查 proxy_connect_timeout 300s;proxy_read_t ...
- 文件上传失败 -nginx报错 client intended to send too large body: 1331696 bytes
location / { root /data/fastdfs/data; include gzip.conf; ngx_fastdfs_module; client_max_body_size 10 ...
随机推荐
- 第一个Sprint计划
时间:5月22-28日 (6天) 人员:杜殷浩(界面设计) 何广强(界面美化) 目标:将基本框架设计好,实现好.
- _stdcall 和 _cdecl
今天遇到一个问题用C++编写一个动态链接库生成的文件为dll.dll,用在visual stdio 2010调用这个dll 调用形式:[DllImport("dll.dll")] ...
- Activiti源码:StandaloneInMemProcessEngineConfiguration与SpringProcessEngineConfiguration
activiti-engine-5.22.0-sources.jar package org.activiti.engine.impl.cfg; StandaloneInMemProcessEngin ...
- git 生成秘钥
Permission denied (publickey). fatal: The remote end hung up unexpectedly 应该是ssh key过期了吧 试着重新创建ssh k ...
- Delphi用户登录窗口框架
经常看到一些新手在CSDN上问登录窗口如何写,也看到N多人form1.show/form1.create/…中做form2.show之类.实在看不下去了.这种写法实在不是很好,于是还是把自己理解的登录 ...
- 【移动端debug-6】如何做一个App里的web调试小工具
原文链接:如何做一个App里的web调试小工具 我们知道现在hybrid app非常流行,在这样的app里,h5页面是应用非常广泛的.相对于以往在pc端开发的网页,放在app里的网页由于无法直接使用桌 ...
- Degree Set CodeForces - 976D(双指针)
题意: 构造一个无向图,使得无向图里的所有点的度数 所组成的集合 即为给出的几个数 解析: 题中的数是以上升的顺序给出的, 我们对于dn+1个数进行处理,对于当前数i,有两个操作 1.向后边的所有点连 ...
- gitlab 7.10.4 去除邮件认证
$path/app/model/user.rb中 devise后面的confirmable
- 【题解】 [ZJOI2007]矩阵游戏 (二分图匹配)
原题目戳我 Solution: 这个二分图藏还是挺深的,重点在哪里呢?首先我们分析下,交换影响的会是哪里. 每一次交换只会影响某一行上的排列或者某一列上的排列,如果有矩阵是下面这样,就一定不会互相影响 ...
- java同步代码(synchronized)中使用BlockingQueue
说起BlockingQueue,大家最熟悉的就是生产者-消费者模式下的应用.但是如果在调用queue的上层代码加了同步块就会导致线程死锁. 例如: static BlockingQueue<St ...