Spring 启动 - Tomcat - Apache2 - HTTP 503 错误 - ProxyIOBufferSize
Spring Boot - Tomcat - Apache2 - HTTP 503 Error - ProxyIOBufferSize
我已经在 Ubuntu 版本 18 服务器上安装了我的 Spring 启动应用程序。
我使用 apache2 并让加密以使用 SSL 保护应用程序。
该应用程序在 95% 时运行良好,有时我会在客户端收到 HTTP 503 错误(浏览器调试视图)
如果 HTTP 503 出现在 Browser/Client 中,也会在 apache2 日志文件中创建一个条目,如下所示:
[Thu Mar 26 00:10:52.731383 2020] [proxy_ajp:error] [pid 16266:tid 139926293157632] [client
xxxx.xxxx.3.59:60869] AH00893: dialog to 127.0.0.1:9090 (localhost) failed, referer:
https domain
[Thu Mar 26 00:10:57.802571 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928]
(70014)End of file found: AH01030: ajp_ilink_receive() can't receive header
[Thu Mar 26 00:10:57.802597 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928] [client
xxx.xxx.3.59:60875] AH00992: ajp_read_header: ajp_ilink_receive failed, referer:
https domain
[Thu Mar 26 00:10:57.802628 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928]
(120006)APR does not understand this error code: [client xxx.xxx.3.59:60875] AH00878: read
response failed from 127.0.0.1:9090 (localhost), referer: https domain
我找到了这个帖子:
We did some more investigation and found that the Apache setting that enables packets > 8192
(ProxyIOBufferSize 65536) was not going into effect because it was wrapped in an <IfModule
... > condition. (The module is loaded but we are investigating why the condition isn't
satisfied.) Tomcat 8.5 worked because it never sent packets larger than 8192, even though it
was allowed to, Tomcat 9 is sending bigger packets as it is configured to. With
ProxyIOBufferSize outside of the conditional, it is now working as expected.
我现在的问题是 ProxyIOBufferSize 的大小是否可能太小以及如何在 apache2 配置文件中调整 ProxyIOBufferSize。
您可以更改 ProxyIOBufferSize 指令 模块 mod_proxy ref : https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyiobuffersize
编辑 /etc/apache2/sites-enabled/000-default.conf 的代理部分:
<Proxy>
ProxyIOBufferSize 65536
</Proxy>
我已经在 Ubuntu 版本 18 服务器上安装了我的 Spring 启动应用程序。 我使用 apache2 并让加密以使用 SSL 保护应用程序。 该应用程序在 95% 时运行良好,有时我会在客户端收到 HTTP 503 错误(浏览器调试视图) 如果 HTTP 503 出现在 Browser/Client 中,也会在 apache2 日志文件中创建一个条目,如下所示:
[Thu Mar 26 00:10:52.731383 2020] [proxy_ajp:error] [pid 16266:tid 139926293157632] [client
xxxx.xxxx.3.59:60869] AH00893: dialog to 127.0.0.1:9090 (localhost) failed, referer:
https domain
[Thu Mar 26 00:10:57.802571 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928]
(70014)End of file found: AH01030: ajp_ilink_receive() can't receive header
[Thu Mar 26 00:10:57.802597 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928] [client
xxx.xxx.3.59:60875] AH00992: ajp_read_header: ajp_ilink_receive failed, referer:
https domain
[Thu Mar 26 00:10:57.802628 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928]
(120006)APR does not understand this error code: [client xxx.xxx.3.59:60875] AH00878: read
response failed from 127.0.0.1:9090 (localhost), referer: https domain
我找到了这个帖子:
We did some more investigation and found that the Apache setting that enables packets > 8192
(ProxyIOBufferSize 65536) was not going into effect because it was wrapped in an <IfModule
... > condition. (The module is loaded but we are investigating why the condition isn't
satisfied.) Tomcat 8.5 worked because it never sent packets larger than 8192, even though it
was allowed to, Tomcat 9 is sending bigger packets as it is configured to. With
ProxyIOBufferSize outside of the conditional, it is now working as expected.
我现在的问题是 ProxyIOBufferSize 的大小是否可能太小以及如何在 apache2 配置文件中调整 ProxyIOBufferSize。
您可以更改 ProxyIOBufferSize 指令 模块 mod_proxy ref : https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyiobuffersize
编辑 /etc/apache2/sites-enabled/000-default.conf 的代理部分:
<Proxy>
ProxyIOBufferSize 65536
</Proxy>