V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
helloworld12
V2EX  ›  问与答

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

  •  
  •   helloworld12 · 2018-02-09 00:46:43 +08:00 · 1804 次点击
    这是一个创建于 2478 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    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
    

    谢谢

    3 条回复    2018-02-09 01:26:02 +08:00
    helloworld12
        1
    helloworld12  
    OP
       2018-02-09 00:57:48 +08:00
    一核 2G 的主机,cpu 差不多 12% 左右
    50 个长连接
    ryd994
        2
    ryd994  
       2018-02-09 00:57:56 +08:00 via Android   ❤️ 1
    关 nagle 试试
    helloworld12
        3
    helloworld12  
    OP
       2018-02-09 01:26:02 +08:00
    @ryd994 嗯 我试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4890 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 03:55 · PVG 11:55 · LAX 19:55 · JFK 22:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.