Sockets leaked in windows not shown in netstat and tcpview

早过忘川 提交于 2019-12-08 04:36:23

问题


Is it possible that windows leaks sockets connection and these sockets are not shown in tcpview and netstat?

After running a few applications that perform many network connections, my windows machine enters a state in whitch it in not able to open any new socket connection. Even to itself (localhosts). For example, telnet to a local application failed because windows can't create new sockets. Closing and restarting the network applications does not helps. Only full windows restart solves the problem.

netstat (& tcpview) indicates that there are only some dozens of connections.

Thanks for your help.


回答1:


No, it is not possible for those apps to miss leaked connections. Something else is going on. Maybe you are not looking at their detailed views, like seeing closed sockets that are in TIME_WAIT state. If you cannot open new socket connections, you mostly likely are encountering port exhaustion. Wait some time for ports to time out and become available again. Or stop wasting ports in the first place.



来源:https://stackoverflow.com/questions/23978077/sockets-leaked-in-windows-not-shown-in-netstat-and-tcpview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!