How to find a list of sockets held by a process in windows?

后端 未结 2 699
北海茫月
北海茫月 2021-02-02 09:10

I have a .Net application that maintains a socket pool to reuse them. It is suspected that it might be holding too many of those sockets without releasing them. Is there a way t

2条回答
  •  借酒劲吻你
    2021-02-02 10:03

    Type netstat -a -o -n -b from an elevated (admin) command prompt.

    -b is to display the executable involved in creating each connection or listening port. See netstat --help for a list of all options.

提交回复
热议问题