简体   繁体   English

如何提高Asp.net中的页面性能c#

[英]How to increase page performance in Asp.net c#

I want to keep a track which pages are mostly accessed and heavy traffic. 我想保留一个主要访问哪些页面和繁忙流量的轨道。 And page can be accessible to more user at any instant of time. 并且页面可以在任何时刻被更多用户访问。 As number of users increased then login page is not loading and site goes very slow.. 随着用户数量的增加,登录页面没有加载,站点变得非常慢..

I want to know or save page loading time/Network Bandwidth . 我想知道或保存页面加载时间/网络带宽 How it will possible? 怎么可能?

Solutions and tricks tips are welcome. 欢迎提供解决方案和技巧提示。

You can refer the below MSDN link 您可以参考以下MSDN链接

MSDN MSDN

Also the below link 还有以下链接

Performance tuning 性能调整

Performance is a very major factor for any application and for achieving this you have to go through on various parts of the web programming like: well designed data architecture, using Cache, Background Processing, using stored procedure and many more. 性能是任何应用程序的一个非常重要的因素,为实现这一点,您必须完成Web编程的各个部分,如:精心设计的数据架构,使用缓存,后台处理,使用存储过程等等。

Please visit this link which help you to do the same: 10 Tips for Writing High-Performance Web Applications Improving ASP.NET Performance 请访问此链接,它可以帮助您完成相同的操作: 编写高性能Web应用程序的10个技巧 提高ASP.NET性能

You could use web method in the .cs file of your page and call this method via ajax. 您可以在页面的.cs文件中使用web方法,并通过ajax调用此方法。 By doing that, your page will not post back, thus enhance performance. 通过这样做,您的页面将不会回发,从而提高性能。 See more information here . 在此处查看更多信息

If you want to find bottlenecks on the page and see what is taking the longest. 如果你想在页面上找到瓶颈,看看花费的时间最长。 You can use Dottrace that is a nice add-on for visual studio. 您可以使用Dottrace ,它是Visual Studio的一个不错的附加组件。 You can profile different stages on the page. 您可以在页面上分析不同的阶段。

Performance tuning includes lot and more. 性能调整包括很多甚至更多。 Please refer to this 请参考这个

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

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