用于远程可视化 ASP.NET 性能计数器的 Web 界面
是否有 ELMAH 等效项用于性能监控(例如,您可以将其插入 ASP.NET 应用程序,以便可以远程可视化性能计数器)?
Azure 有一些解决方案,但我想知道是否有更通用的东西可以部署到 AppHarbor 等地方:
Is there an ELMAH equivalent for performance monitoring (e.g. something you can plug into an ASP.NET app so you can visualize performance counters remotely)?
There are some solutions for Azure but I'm wondering if there is something more generic that can be deployed to places like AppHarbor:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您永远无法以中等信任度访问性能计数器,因此让 AppHarbor 添加此功能可能是它的唯一工作方式。
另请记住,您的应用程序可能会在多个实例上运行,因此每个实例的计数器都会不同(而且我不确定您是否可以轻松地从每个实例中获取它们,因为您看不到对哪个实例有任何控制)您的请求转到的实例)。
最后,您可能不是 EC2 实例上的唯一人员,因此只有您可以限制到应用程序进程的计数器才有用。
I don't think you'd ever be able to access Performance Counters in medium trust, so having AppHarbor add this functionality is probably the only way it'd work.
Also bear in mind that your app may be running across multiple instances so the counters would be different per instance (and I'm not sure if you could easily get them from each one, since you don't see to have any control over which instance your request goes to).
Finally, you're probably not the only person on an EC2 instance, so only counters you could restrict to your applications process would be useful.
ELMAH 在 Azure 上也应该可以正常工作。您也可以尝试手动定义一些性能计数器,然后将它们复制到诊断存储。有关 Azure 诊断的更多信息,请参阅 Windows Azure BootCamp 材料,诊断和服务管理演示。然后您可以使用 Cerebrata Diagnostic Manager 工具来查看它们。该工具位于此处
ELMAH should work fine on Azure too. Also you can try defining manually some performance counters and then copying them to the diagnostics storage. More about Diagnostics on Azure can be found in the Windows Azure BootCamp materials, Diagnostics and Service Management presentation. Then you can use Cerebrata Diagnostic Manager tool to see them. The tool is available here