小编leo*_*leo的帖子

nginx等待连接过多

我的Nginx状态在下面吗?

Active connections: 1156598
server accepts handled requests
     429477742 429477742 2435052040 
Reading: 353 Writing: 45136 Waiting: 1111109 
Run Code Online (Sandbox Code Playgroud)

我们可以看到,有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 
Run Code Online (Sandbox Code Playgroud)

等待连接的值比TCP连接高得多,这是否正常?

connection tcp nginx

5
推荐指数
1
解决办法
6640
查看次数

标签 统计

connection ×1

nginx ×1

tcp ×1