gpt4 book ai didi

nginx - 太多的 nginx 等待连接

转载 作者:可可西里 更新时间:2023-11-01 02:32:08 24 4
gpt4 key购买 nike

我的nginx状态如下:

Active connections: 1156598
server accepts handled requests
429477742 429477742 2435052040
Reading: 353 Writing: 45136 Waiting: 1111109

正如我们所见,有 1111109 个等待连接。

但是使用 ss -s 我只能得到 24453 个 tcp 连接:

Total: 17618 (kernel 0)
TCP: 24453 (estab 17007, closed 6489, orphaned 622, synrecv 0, timewait 6466/0), ports 0

Transport Total IP IPv6
* 0 - -
RAW 0 0 0
UDP 2 2 0
TCP 17964 17961 3
INET 17966 17963 3
FRAG 0 0 0

Waiting connections的值比TCP连接数高很多,正常吗?

最佳答案

那些是保持连接。它们通常不是问题。但是如果你想降低这个数字,减少 keepalive_timeout

https://www.ruby-forum.com/topic/203409

关于nginx - 太多的 nginx 等待连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28823254/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com