websocket 长连接 用 netstat 监控的时候,发现 high send-Q ,怎么处理?

2018-02-09 00:46:43 +08:00
 helloworld12

目前,主要出现客户端会卡(游戏客户端,玩着玩着,所有报文就能发上去,但是接不到响应)

tcp        0    829 172.19.177.101:88       27.154.155.186:6549     ESTABLISHED
tcp        0    808 172.19.177.101:88       27.154.155.186:6575     ESTABLISHED
tcp        0    798 172.19.177.101:88       27.154.155.186:6551     ESTABLISHED
tcp        0    682 172.19.177.101:88       27.154.155.186:6391     ESTABLISHED
tcp        0    679 172.19.177.101:88       27.154.155.186:6512     ESTABLISHED
tcp        0    593 172.19.177.101:88       27.154.155.186:6520     ESTABLISHED
tcp        0    556 172.19.177.101:88       27.154.155.186:6573     ESTABLISHED
tcp        0    556 172.19.177.101:88       27.154.155.186:6476     ESTABLISHED
tcp        0    547 172.19.177.101:88       27.154.155.186:6489     ESTABLISHED
tcp        0    546 172.19.177.101:88       27.154.155.186:6514     ESTABLISHED
tcp        0    522 172.19.177.101:88       27.154.155.186:6224     ESTABLISHED
tcp        0    386 172.19.177.101:88       27.154.155.186:6527     ESTABLISHED
tcp        0    357 172.19.177.101:88       27.154.155.186:6481     ESTABLISHED
tcp        0    326 172.19.177.101:88       27.154.155.186:6568     ESTABLISHED
tcp        0    323 172.19.177.101:88       27.154.155.186:6537     ESTABLISHED
tcp        0    317 172.19.177.101:88       27.154.155.186:6493     ESTABLISHED
tcp        0    317 172.19.177.101:88       27.154.155.186:6432     ESTABLISHED
tcp        0    317 172.19.177.101:88       27.154.155.186:6386     ESTABLISHED
tcp        0    316 172.19.177.101:88       27.154.155.186:6591     ESTABLISHED
tcp        0    316 172.19.177.101:88       27.154.155.186:6232     ESTABLISHED
tcp        0    315 172.19.177.101:88       27.154.155.186:6594     ESTABLISHED
tcp        0    315 172.19.177.101:88       27.154.155.186:6567     ESTABLISHED

谢谢

1804 次点击
所在节点    问与答
3 条回复
helloworld12
2018-02-09 00:57:48 +08:00
一核 2G 的主机,cpu 差不多 12% 左右
50 个长连接
ryd994
2018-02-09 00:57:56 +08:00
关 nagle 试试
helloworld12
2018-02-09 01:26:02 +08:00
@ryd994 嗯 我试试

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/429610

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX