我需要确定有多少用户连接到 WCF 服务。我正在使用 NetTcpBinding。
谢谢。
WCF 服务包括性能计数器,您可以使用Windows 性能监视器 http://technet.microsoft.com/en-us/library/cc749249.aspx(性能监视器.exe)。您可以从 Windows Server 2003 中的管理工具启动它。
可以从诊断部分启用性能计数器.config
服务的文件,如以下示例配置所示:
<configuration>
<system.serviceModel>
<diagnostics performanceCounters="All" />
</system.serviceModel>
</configuration>
您可能需要查看以下文章,它们可以指导您如何使用 WCF 服务的性能计数器:
- MSDN - WCF 性能计数器 http://msdn.microsoft.com/en-us/library/ms735098.aspx
-
MSDN - 使用性能计数器 http://msdn.microsoft.com/en-us/library/ms750527.aspx
-
如何使用性能计数器来诊断 WCF 应用程序的性能 http://blogs.msdn.com/wenlong/archive/2007/09/07/how-to-use-performance-counters-to-diagnose-performance-of-wcf-applications.aspx
- Sajay 的博客 - WCF 性能计数器 http://www.sajay.com/post/2009/09/13/WCF-Performance-Counters.aspx
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)