Netstat显示大量的“ Syn_rcvd”状态

发布于 2025-01-20 16:25:05 字数 1006 浏览 17 评论 0原文

netstat 在 Solaris 11 上显示大量“SYN_RCVD”状态,它是一个 nginx 反向服务器。

# netstat -na | awk '/^20/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 515
ESTABLISHED 427
SYN_SENT 14
LAST_ACK 223
Connected 9488
FIN_WAIT_1 37
FIN_WAIT_2 167
CLOSING 48
CLOSE_WAIT 11
Idle 5
SYN_RCVD 4437

服务器tcp/ip参数:

# ndd -get /dev/tcp tcp_time_wait_interval
60000
# ndd -get /dev/tcp tcp_keepalive_interval
15000
# ndd -get /dev/tcp tcp_fin_wait_2_flush_interval
67500
# ndd -get /dev/tcp tcp_conn_req_max_q
16384
# ndd -get /dev/tcp tcp_conn_req_max_q0
16384
# ndd -get /dev/tcp tcp_xmit_hiwat
400000
# ndd -get /dev/tcp tcp_recv_hiwat
400000
# ndd -get /dev/tcp tcp_cwnd_max
2097152
# ndd -get /dev/tcp tcp_ip_abort_interval
20000
# ndd -get /dev/tcp tcp_rexmit_interval_initial
4000
# ndd -get /dev/tcp tcp_rexmit_interval_max
10000
# ndd -get /dev/tcp tcp_rexmit_interval_min
3000
# ndd -get /dev/tcp tcp_max_buf
4194304

如何调整这个nginx反向服务器。 谢谢。

netstat display Huge amount of "SYN_RCVD" state on Solaris 11, it's a nginx reverse server.

# netstat -na | awk '/^20/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 515
ESTABLISHED 427
SYN_SENT 14
LAST_ACK 223
Connected 9488
FIN_WAIT_1 37
FIN_WAIT_2 167
CLOSING 48
CLOSE_WAIT 11
Idle 5
SYN_RCVD 4437

The server tcp/ip parameters:

# ndd -get /dev/tcp tcp_time_wait_interval
60000
# ndd -get /dev/tcp tcp_keepalive_interval
15000
# ndd -get /dev/tcp tcp_fin_wait_2_flush_interval
67500
# ndd -get /dev/tcp tcp_conn_req_max_q
16384
# ndd -get /dev/tcp tcp_conn_req_max_q0
16384
# ndd -get /dev/tcp tcp_xmit_hiwat
400000
# ndd -get /dev/tcp tcp_recv_hiwat
400000
# ndd -get /dev/tcp tcp_cwnd_max
2097152
# ndd -get /dev/tcp tcp_ip_abort_interval
20000
# ndd -get /dev/tcp tcp_rexmit_interval_initial
4000
# ndd -get /dev/tcp tcp_rexmit_interval_max
10000
# ndd -get /dev/tcp tcp_rexmit_interval_min
3000
# ndd -get /dev/tcp tcp_max_buf
4194304

How to tuning this nginx reverse server.
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

入怼 2025-01-27 16:25:05
 # of conn reqs in SYN_RCVD - "fully-established" connections - 
 those which have finished the 3-way handshake and 
 are waiting to be picked up by an "accept()" call. 

您应该考虑调整 accect_mute_mutex 可以尝试不同的nginx 处理方法,只需如果这是真正的原因。

 # of conn reqs in SYN_RCVD - "fully-established" connections - 
 those which have finished the 3-way handshake and 
 are waiting to be picked up by an "accept()" call. 

You should consider tuning your accept_mutex nginx parameter and may be try different nginx processing method, just to get if it is real reason.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文