简体   繁体   English

如何在不访问IIS日志文件的情况下监视ASP.NET MVC服务器的负载和性能

[英]How can I monitor ASP.NET MVC server load and performance without access to IIS log files

I need to monitor the load and performance on my ASP.NET MVC web service application. 我需要监视ASP.NET MVC Web服务应用程序上的负载和性能。 The application is hosted on AppHarbor and behind a load balancer. 该应用程序托管在AppHarbor上,并在负载均衡器后面。 Currently just running 2 web workers. 目前仅运行2个Web Worker。 Some of the data we're trying to collect: 我们正在尝试收集的一些数据:

  • average/peak load in hits per second 每秒平均/峰值负载
  • min/max/average request processing time 最小/最大/平均请求处理时间

AppHarbor has been promising access to IIS logs for some time, but as far as I can tell it has yet to materialize. AppHarbor承诺在一段时间内可以访问IIS日志,但据我所知它尚未实现。 I'm thinking of just rolling my own ASP.NET filter or something to log each request to a database, but I'm a little worried of impacting performance negatively by introducing a database write on each request. 我正在考虑只是滚动我自己的ASP.NET筛选器或某种东西来将每个请求记录到数据库,但是我有点担心通过在每个请求上引入数据库写操作而对性能产生负面影响。

This is not a very high traffic application at the moment. 目前,这不是一个流量很高的应用程序。 Hard to tell with no logs, but my guess is on the order of a few hundred thousand requests per month. 没有日志很难说,但我的猜测是每月大约有数十万个请求。

Are there any off the shelf packages I should consider? 我应该考虑购买现成的包装吗? Is it worth considering some kind of cloud based logging/analysis? 是否值得考虑某种基于云的日志记录/分析?

You should probably take a look at the New Relic add-on . 您可能应该看看New Relic附加组件 AppHarbor has a bunch of other monitoring add-ons that might work for your use. AppHarbor还有许多其他监视插件 ,可能适合您使用。 Hosted Graphite is another one. 石墨石墨是另一种。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM