简体   繁体   English

如何在我的代码中监视Azure存储操作的性能?

[英]How do I monitor performance of Azure Storage operations in my code?

I have a web role that uses Azure Storage while serving requests. 我有一个网络角色,在处理请求时使用Azure存储。 Now I see that requests are served damn slow - like dozens times slower that usual. 现在,我发现请求的处理速度真是太慢了-比平常慢了几十倍。 I've looked over the performance counters saved by the role - they look usual to me. 我查看了该角色保存的性能计数器-它们在我看来很普通。 I've checked connectivity from my network to the role - it looks okay. 我已经检查了从网络到角色的连接-看起来还不错。

I suspect the problem might be with Azure Storage operations invoked from inside my service being rather slow for some periods of time and that would slow serving requests down. 我怀疑问题可能出在我的服务内部调用的Azure存储操作在一段时间内相当缓慢,这会减慢服务请求的速度。

How do I continuously gather data that would help me estimate performance of these requests? 如何持续收集数据以帮助我估计这些请求的性能? Is there anything like a performance counter that I could enable or anything similar? 是否有我可以启用的性能计数器之类的功能?

Turn on storage logging and you can see the response times. 打开存储日志记录 ,您可以看到响应时间。 This is enabled easily on the new portal under configuration for a storage account. 可以在新门户网站上的存储帐户配置下轻松启用此功能。 You can graph the response times and see if they correlate to your slowness. 您可以绘制响应时间图表,并查看它们是否与您的慢度相关。

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

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