如何找出多少个并发连接到WCF服务的存在? [英] How to find out how many concurrent connections to WCF service exists?
问题描述
我需要确定有多少用户连接到一个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性能计数器
- MSDN - 使用性能计数器
- <一个href="http://blogs.msdn.com/wenlong/archive/2007/09/07/how-to-use-performance-counters-to-diagnose-performance-of-wcf-applications.aspx">How使用性能计数器来诊断WCF应用程序的性能
- Sajay的博客 - WCF性能计数器
- 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屋!