How to find out how many concurrent connections to WCF service exists?

前端 未结 2 1450
攒了一身酷
攒了一身酷 2021-02-14 11:30

I need to determine how many users are connected to a WCF service. I am using the NetTcpBinding.

Thank you.

2条回答
  •  悲哀的现实
    2021-02-14 11:53

    If you implement your service to count the number of live connections you could obtain this number for every binding. But since you specified that you are using the net.tcp binding I think you should use netstat or a packet sniffer tool, like Wireshark, for that purpose.

    If your server is hosted in IIS, I think it can give some usage statistics.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题