ASP.NET Perfomance监控 [英] ASP.NET Perfomance monitoring

查看:89
本文介绍了ASP.NET Perfomance监控的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序在本地服务器上运行。一次有大约40个用户。但有时应用程序变得非常慢。我可以跟踪这个问题。我想

它可以像高级一样加载服务器,代码问题或高流量?我怎么能检测到它。提前谢谢

解决方案

你需要确定瓶颈发生的位置,所以可能先从最低层开始,然后继续前进。我不知道你的设置,所以假设下面的'带有Web应用服务器的数据库服务器'



1)数据库性能。

您的查询是否运行最佳,是否存在阻塞?你能调整你的查询吗?可能会考虑运行SQL事件探查器以查找运行缓慢的查询(请注意,在生产服务器上使用分析器会增加负载并导致性能问题,请查看此处)



http://dba-stackexchange.com/questions / 818 / using-sql-profiler-on-a-database-in-production [ ^ ]



你的数据库怎么样?服务器执行,检查CPU使用率,内存,磁盘空间等。



2)应用程序层

您是否正在使用缓存来减少行程到数据库。您是否正确缓存静态内容?您的Web服务器如何执行(我假设IIS?),检查CPU使用率,磁盘空间等。





一个有用的工具是 perfmon

开始 - >运行 - > perfmon



选择添加计数器,选择你想要监控的计数器(ASP.Net,SQL Server等)



简而言之,性能调优并不是我们可以在不了解您的架构的情况下专门为您提供建议的。但是,以上几乎是任何调整的基本起点





请参阅本文以获取进一步的指导



http://technet.microsoft.com/en-us /library/bb742546.aspx [ ^

Our application is running on local server .It have around 40 users at atime.But application becomes very slow some times.how can i track this problem.I think
It can related anything like high load on the server ,code problem or high traffic? how can i detect it.Thanks in advance

解决方案

You need to identify where the bottlenecks are occurring, so possibly start at the lowest level first and work you way up. I don't know your setup, so assuming 'Database Server with Web application Server' in the below

1) Database performance.
Are your queries running optimal, is there any blocking occurring? Can you tune your queries? Possibly think about running SQL Profiler to look for slow running queries (be aware that using profiler on a production server will add to the load and cause performance issues, look here)

http://dba.stackexchange.com/questions/818/using-sql-profiler-on-a-database-thats-in-production[^]

How is your database server performing, check CPU usage, memory, disk space etc.

2) Application layer
Are you making use of caching to reduce trips to the database. Are you caching static content correctly? How is your web server performing (I'm assuming IIS?), check CPU usage, disk space etc.


A useful tool is perfmon
Start -> Run -> perfmon

Choose Add Counters, select the counters you want to monitor (ASP.Net, SQL Server etc)

In short, performance tuning isn't really something we can advise you on specifically without knowing your architecture. However, the above is pretty much the basic starting points for any tuning


Refer to this article for further guidance

http://technet.microsoft.com/en-us/library/bb742546.aspx[^]


这篇关于ASP.NET Perfomance监控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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