在繁忙的服务器上,其所能支持的TCP连接有限,如果大量连接没有关闭或者处于TIME_WAIT状态会影响网络程序的正常运行。严重的时候我们会遇到“由于系统缓冲区空间不足或队列已满,不能执行套接字上的操作。(An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.)”的问题。那么如何检查当前系统有多少个TIME_WAIT连接(或多少个活动连接)?

运行DOS命令:

netstat -an | find /C "TIME_WAIT"

检查当前有多少个大概有TCP连接

netstat -an | find /C "TCP"

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-04-11
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案