如何找出多少个并发连接到WCF服务的存在? [英] How to find out how many concurrent connections to WCF service exists?

查看:198
本文介绍了如何找出多少个并发连接到WCF服务的存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要确定有多少用户连接到一个WCF服务。我现在用的是NetTcpBinding的。

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

感谢你。

推荐答案

WCF服务,包括性能计数器,您可以用的 Windows性能监视器(Perfmon.exe)中。您可以从管理工具在Windows Server 2003推出这一点。

WCF services includes performance counters that you can track with the Windows Performance Monitor (Perfmon.exe). You can launch this from the Administrative Tools in Windows Server 2003.

性能计数器可以从的.config 文件服务的诊断区域启用,如下面的示例配置:

Performance counters can be enabled from the diagnostics section of the .config file for the service, as shown in the following sample configuration:

<configuration>
  <system.serviceModel>
    <diagnostics performanceCounters="All" /> 
  </system.serviceModel>
</configuration>

您可能想看看这些文章,可以指导你如何使用性能计数器WCF服务:

You may want to check out these articles which can guide you on how to use the performance counters for WCF services:

  • MSDN - WCF Performance Counters
  • MSDN - Using Performance Counters
  • How to use performance counters to diagnose performance of WCF applications
  • Sajay's Blog - WCF Performance Counters

这篇关于如何找出多少个并发连接到WCF服务的存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆