跟踪 ASP.NET 网页的缓慢性能
我想找出 ASP.NET Intranet 网站的某些网页性能缓慢的原因。原因可能有很多,比如大的视图状态、服务器和数据库的往返次数、UI/中间层中的低效代码等。大多数慢速页面都是带有一些第三方控件、用户控件的复杂网页。
找出导致页面速度变慢的最快方法是什么,而无需调试网页上的每个交互并逐步执行代码行。像 ANTS 这样的代码分析器会有什么帮助吗?或者还有什么更好的方法吗?导致页面性能缓慢的因素可能有很多,但我想按优先顺序修复它们。
谢谢, 罗摩
I want to find out the reason for slow performance of some web pages of an ASP.NET intranet website. the reasons could be many like large view state, number of round trips to the server and database, inefficient code in UI/middle tier etc. most of these slow pages are complex web pages with some third party controls, user controls.
what is the quickest way to find out what is causing the page to slow down without debugging each and every interaction on the web page and stepping through lines of code. will the code profilers like ANTS be of any help? or are there any better ways? there could be many factors for slow performance of a page, but I want to fix them in priority order.
thanks,
Rama
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以使用名为 yslow 的 Firefox 插件,它根据以下内容分析网页Yahoo 的性能规则。
如果您想检查代码性能,则可以使用分析工具。
对于 SQL,有 SQL Server Profiler 。
对于 .Net,您可以使用ANTS Performance Profiler
You can use a firefox addon named yslow whcih analyzes web pages based on Yahoo's performance rules.
If you want to check code performance then you can use a profiling tool.
For SQL there is SQL Server Profiler.
For .Net you can use ANTS Performance Profiler
使用 Fiddler 或 HTTPWatch 来分析 Web 应用程序,这也适用于 IE。
我
刚刚发现了 john resig - 深度跟踪 IE 有关 IE 的新客户端分析器工具。这是很棒的&它是免费的。
您可以在此处获取它
Use Fiddler or HTTPWatch to profile the web application, this works with IE too..
And
I just came across a interesting post by john resig - deep tracing IE about the new client side profiler tool for IE. It is awsome & Its free.
You can get it here
如果您的 Web 应用程序正在创建跟踪文件,则停止网站,删除所有存档跟踪文件并重新启动网站。它帮助我解决了这个问题。
If your web application is creating trace files then stop the web site, delete all archive trace files and restart the web site. It helped me to resolve the issue.
尝试 FastSQLDataSource。当您需要使用网格、列表和其他绑定控件在 Web 应用程序中更快地显示大量数据时,它会有所帮助。
http://www.ninrosbase.net
它几乎可以在不编码的情况下工作,有时甚至根本不需要编码。
Try FastSQLDataSource. It helps when you need faster display of large amounts of data in your web application using grids, lists and other bound controls.
http://www.nitrosbase.net
It can work almost without coding or sometimes with no coding at all.
一些补充:
Some addtions: