【发布时间】:2013-06-01 07:39:36
【问题描述】:
我需要在内存和进程使用方面捕获 Windows 服务的统计信息。 我尝试探索 Perfmon,它具有捕获系统性能的选项。可能这也将具有监视单个进程的选项。
请告诉我如何监控 Windows 服务。
【问题讨论】:
标签: .net performance-testing performancecounter perfmon
我需要在内存和进程使用方面捕获 Windows 服务的统计信息。 我尝试探索 Perfmon,它具有捕获系统性能的选项。可能这也将具有监视单个进程的选项。
请告诉我如何监控 Windows 服务。
【问题讨论】:
标签: .net performance-testing performancecounter perfmon
当我开始使用性能计数器时,我很快就打开了对我有很大帮助的页面
您的参考: http://msdn.microsoft.com/de-de/library/system.diagnostics.performancecounter.aspx
简单示例 How can I use Performance Counters in C# to monitor 4 processes with the same name?
特殊的 ASP.Net 计数器: http://msdn.microsoft.com/en-us/library/fxk122b4(v=vs.100).aspx
当您遇到介绍性问题时,请阅读以下内容:
Performance Counter by Process ID instead of name?
和
With Process PerformanceCounters how do I know what process an instance is associated with?
和
http://openrent.blogspot.de/2008/01/multiple-clr-performance-counters.html
【讨论】: