如何使用C#跟踪网站/服务器/ webservice / winservice性能? [英] How to track a website/ server/ webservice/ winservice performance using C# ?

查看:73
本文介绍了如何使用C#跟踪网站/服务器/ webservice / winservice性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How to track a website/ server/ webservice/ winservice performance i.e. up time, down time, which service is running and which is not running and if not running what is the error, I have to show all these information in a grid view. How this can be achieved using C#, .Net? My current project needs this. Please share any code-snippet or link, that will be very helpful to me. Thanks in advance.

推荐答案

System中有一个PerformanceCounter类。诊断命名空间 - 它可用于读取现有性能计数器 - 使用它: https://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter(v = vs.110).aspx [ ^ ]
There is a PerformanceCounter class in System.Diagnostics namespace - it can be used to read existing performance counters - use it: https://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter(v=vs.110).aspx[^]


这篇关于如何使用C#跟踪网站/服务器/ webservice / winservice性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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