[英]Extremely slow website on IIS
I'm trying to run a website locally, and it is very slow. 我正试图在本地运行一个网站,而且速度非常慢。 Website uses DotNetNuke and IIS7.
网站使用DotNetNuke和IIS7。 When I create a new blank website - it runs fast.
当我创建一个新的空白网站时 - 它运行得很快。 This particular one is slow.
这个特别慢。
What have I tried: 我试过了什么:
None of these helped 这些都没有帮助
Also, my website is even 5 times slower to respond when I need to recompile my solution. 此外,当我需要重新编译我的解决方案时,我的网站响应速度甚至慢了5倍。
update, if this is helpful, this is my basic trace: 更新,如果这有用,这是我的基本跟踪:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin PreInit
aspx.page End PreInit 3.87710342363437E-05 0.000039
aspx.page Begin Init 6.42382822151184E-05 0.000025
aspx.page End Init 3.07985958803876 3.079795
aspx.page Begin InitComplete 3.07989531820756 0.000036
aspx.page End InitComplete 3.07990824188564 0.000013
aspx.page Begin PreLoad 3.07991584404922 0.000008
aspx.page End PreLoad 3.07993180859273 0.000016
aspx.page Begin Load 3.0799394107563 0.000008
aspx.page End Load 116.812769734266 113.732830
aspx.page Begin LoadComplete 116.81281078595 0.000041
aspx.page End LoadComplete 116.812820288654 0.000010
aspx.page Begin PreRender 116.812828270926 0.000008
aspx.page End PreRender 205.25318815735 88.440360
aspx.page Begin PreRenderComplete 205.253225407951 0.000037
aspx.page End PreRenderComplete 213.774178871307 8.520953
aspx.page Begin SaveState 215.060896371107 1.286717
aspx.page End SaveState 215.279060220539 0.218164
aspx.page Begin SaveStateComplete 215.279100892114 0.000041
aspx.page End SaveStateComplete 215.279114576008 0.000014
aspx.page Begin Render 215.279130160444 0.000016
aspx.page End Render 217.466907021738 2.187777
Since it runs fast in production, but slow on your machine, it could be a connection to an external resource, ie database or other. 由于它在生产中运行速度很快,但在您的机器上运行缓慢,因此它可能是与外部资源(即数据库或其他)的连接。
Enable Tracing in your application and then see where processing is taking too long. 在应用程序中启用跟踪 ,然后查看处理时间过长的情况。 You can help narrow this down by adding trace messages throughout your application in places you think could be causing the issue.
您可以通过在您认为可能导致问题的位置的整个应用程序中添加跟踪消息来缩小范围。
You could also see if this occurs on another workstation, with a clean OS, to determine if it could be something on your local machine causing issues. 您还可以查看是否在具有干净操作系统的其他工作站上发生这种情况,以确定它是否可能是本地计算机上的问题导致问题。
You could grab the ANTS Performance Profiler from Red Gate and see if it points you in the right direction. 您可以从Red Gate获取ANTS Performance Profiler ,看它是否指向正确的方向。 There is a 14 day free trial, I've used this tool in the past to find bottlenecks and other issues and it is worth every penny.
有一个14天的免费试用版,我过去使用过这个工具来找到瓶颈和其他问题,值得每一分钱。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.