chrome请求待处理

时间:2019-01-12 10:04:47

标签: java google-chrome tomcat

当请求我的网站时,最初是正常的,但是一段时间后,请求始终处于待处理状态。

但是另一个具有相同代码的环境是正常的。可能是服务器问题吗?

我已经使用net-export捕获了一些信息。它被卡在SOCKET_POOL_STALLED_MAX_SOCKETS_PER_GROUP

enter image description here enter image description here enter image description here 谢谢您的任何建议。

1 个答案:

答案 0 :(得分:0)

HTTP/1.x 仅允许 six active/parallel connections,因此请尝试调试您的网络请求并查看哪个请求可能挂断。例如,一些 websocket 库可能会退回到长轮询,这可能是原因。但现在最好继续HTTP/2 which kind of solve problem of six connections