网站运行在IIS中
需要监控的内容:
1.访问量
2.访问出错次数
3.平均请求响应时间
windows内带性能计数器和日志,就可以实现你说的功能,自己google下
利用ASP.NET的 Sessions Active counter.
PerformanceCounter pc = new PerformanceCounter("ASP.NET Applications",
"Sessions Active", "__Total__", "MYSERVERHOSTNAME.domain");
while (true)
{
Console.WriteLine(pc.NextValue());
System.Threading.Thread.Sleep(1000);
}
有很多的开源产品,不需要自己弄吧