打赏

websocket连接数查看

websocket

  1. 查看websocket连接
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 
--------------------------------------------
netstat -a |grep 8090
  1. 强制移除websocket连接

     ss -tap | grep CLOSE-WAIT
     ss -tap state CLOSE-WAIT
     kill xxx // pid
    

参考链接

https://www.baeldung.com/linux/remove-close_wait-connection

https://blog.csdn.net/easylife206/article/details/99670070

posted @ 2022-06-17 13:51  苍山落暮  阅读(1924)  评论(0编辑  收藏  举报