Heim  >  Fragen und Antworten  >  Hauptteil

linux - centos7中大量的established socket怎么关闭?

服务器端由于客户端连接请求不当,造成了很多孤立的socket占用了连接数和内存,我用netstat -an |grep 'ESTABLISHED' |grep 'tcp' |wc -l命令查看了下有18万多,请问如何关闭这些socket呢?急求,谢谢!

怪我咯怪我咯2744 Tage vor999

Antworte allen(1)Ich werde antworten

  • 天蓬老师

    天蓬老师2017-04-17 13:43:54

    把客户端关掉,或者重启服务。

    Antwort
    0
  • StornierenAntwort