简体   繁体   English

如果Tomcat响应缓慢,请求将增加一倍

[英]Requests being doubled if Tomcat is slow to respond

We are working with the following stack: 我们正在使用以下堆栈:

A node express middleware running on Nginx is communicating with an Apache, which proxies the requests to Tomcat, that are located on another server. 在Nginx上运行的节点表示中间件正在与Apache通信,该Apache将请求转发给位于另一台服务器上的Tomcat。 Now, when requesting an operation that takes more than 15 seconds to complete, another identical request will be sent. 现在,当请求完成一个超过15秒的操作时,将发送另一个相同的请求。 There is obviously a 15-second retry policy somewhere. 很明显,某处有15秒的重试策略。

So far, I have been unable to detect exactly who is doing this and my Google searches have also been fruitless. 到目前为止,我一直无法准确地确定谁在执行此操作,而且我的Google搜索也没有结果。 So, my question is if anyone has experience with something like this and could it be Node, Nginx or Apache that is sending the second request. 因此,我的问题是,是否有人有类似的经验,发送第二个请求的可能是Node,Nginx或Apache。

Any suggestions on where the double requests are coming from and what property I need to adjust to turn them off would be greatly appreciated. 对于双重请求来自何处以及需要调整哪些属性以将其关闭的任何建议,将不胜感激。

解决方案是将apache的jk_mod中的套接字超时属性设置为0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM