网站速度问题 [英] Speed issue in website

查看:157
本文介绍了网站速度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在服务器上部署我的项目(IIS 10)当管理员登录到网站项目运行缓慢并且用户登录网站运行速度快,以及页面加载问题面临时,会出现速度问题。请给我解决方案。







谢谢你



我尝试过:



我使用自动完成扩展程序以及IIS中的更改

When I was deployed my project on server(IIS 10) There is speed problem is arise when admin login to the website the project runs slowly and user login into the website runs fastly, As well as page loading problem faced. please give me solution.



Thank u

What I have tried:

I have using autocomplete extender as well as changes in IIS

推荐答案

其他人无法回答这个问题。我们不知道该页面的作用。缓存策略是什么。如何设置IIS。我们没有这些信息。幸运的是,有一种方法可以让你自己找到答案。你需要做的是运行一个分析器,如dotTrace,让它跟踪你的网站的执行情况(我把 dotTrace [< a href =https://www.jetbrains.com/profiler/target =_ blanktitle =New Window> ^ ]这是因为它是我使用的探查器,它非常擅长帮助你追踪问题)。
This question is impossible for anyone else to answer. We don't know what that page does. What the caching strategies are. How you have IIS set up. We have none of this information. Fortunately for you, there is a way that YOU can find the answer out for yourself. What you need to do is run a profiler such as dotTrace and have it trace the execution of your website (I put dotTrace[^] here because it's the profiler I use and it's very good at helping you trace issues).


我同意使用分析器跟踪应用程序性能。



另外需要注意的是有很多可能页面加载非常慢的原因,特别是在初始加载时,这些包括(1)从数据库中获取大量数据(您应该限制查询中返回的数据量或使用sql分页以获得更有效的方式。如果查询速度慢的话,确保你有适当的索引),(2)显示大图像,(3)一堆JavaScripts,CSS,(4)网络连接等...一种方法来看看这些东西有多长服用就是使用Chrome Deve loper工具,FireBug(firefox)或IE Developer Tools。通过单击(F12)在浏览器中可以使用它们,从那里,您可以监视网络选项卡,该选项卡将指示页面中每个单独进程的完成时间。



您应该阅读加快应用程序的性能。那里有很多人。只需在谷歌找到它们;)



一旦你能够确定你的应用程序或代码中的哪个部分导致你的页面加载速度变慢,那么你应该重新考虑你的方法为了解决这个问题。
I agree with using profiler to trace application performance.

Another things to note is that there are many possible reasons why the page loads very slow especially on initial load and these includes (1) grabbing huge data from database (you should limit the amount of data to be returned in your query or use sql paging for more effecient way. If your queries are slow, make sure you have proper indexes on them) , (2) displaying large images, (3) bunch of JavaScripts, CSS, (4) network connection, and so on... One way to see how long some of these things are taking would be to use the Chrome Developer tools, FireBug(firefox) or IE Developer Tools. They are available within your browser by clicking (F12), from there, you can monitor the Network tab which will indicate how long each of the individual processes within your page is taking to finish.

You should read about speeding up the performance of your application. There a bunch of them out there. Just find them at google ;)

Once you are able to determine which part in your application or code causes the your page load slow, then you should rethink your approach in order to fix that.


这篇关于网站速度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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