ASP.NET MVC性能突然变得非常慢

时间:2021-06-30 15:36:02

I'm using Billy McCafferty's rather excellent S#arp Architecture. Everything was spiffing and running very quickly.

我正在使用Billy McCafferty相当出色的S#arp架构。一切都很快,很快就开始运转。

I then updated to the the latest ASP.NET MVC RC. This meant I had to get the latest trunk of S#arp.

然后我更新到最新的ASP.NET MVC RC。这意味着我必须得到S#arp的最新主干。

Also, two weeks ago, I updated from XP to Vista (32 bit)

另外,两周前,我从XP更新到Vista(32位)

My problem is that the performance has suddenly become woeful.

我的问题是表现突然变得悲惨。

Everything seems to work, however it's become really slow. Each http request is taking 1 second. Yes, one metric second - which you can imagine is making the page load like the webserver is being powered by an arthritic donkey in a giant, hastily constructed mouse wheel.

一切似乎都有效,但它变得非常慢。每个http请求需要1秒钟。是的,一秒钟 - 您可以想象的是,像网络服务器这样的页面加载由一个巨大的,匆忙构造的鼠标滚轮中的关节炎驴提供动力。

Every script or image on the page adds one second to the loading time.

页面上的每个脚本或图像都会增加一秒的加载时间。

  • I don't have log4net turned on so I don't think it's that.
  • 我没有打开log4net,所以我认为不是这样。
  • This is running on the homepage so there's only a very minimal database stuff going on (which is very quick anyway)
  • 这是在主页上运行,因此只有非常小的数据库内容(无论如何都非常快)
  • This is happening for simple images too, so I think it's got to be something at the routing or webserver level.
  • 对于简单的图像也是如此,所以我认为它必须是路由或Web服务器级别的东西。

Any ideas what else it could be?

有什么想法可能是什么?

2 个解决方案

#1


12  

This is just a guess but i've seen slowness coming from having IPv6 enabled especially when using Firefox on localhost.

这只是猜测,但我看到启用IPv6的速度很慢,尤其是在localhost上使用Firefox时。

http://weblogs.asp.net/dwahlin/archive/2007/06/17/fixing-firefox-slowness-with-localhost-on-vista.aspx

http://weblogs.asp.net/dwahlin/archive/2007/06/17/fixing-firefox-slowness-with-localhost-on-vista.aspx

#2


4  

You could download dotTrace and profile your site.

您可以下载dotTrace并对您的网站进行个人资料。

I had a similar issue a few weeks ago and this application allowed me to get to the bottom of it in minutes.

几个星期前我遇到了类似的问题,这个应用程序让我在几分钟内就能找到它的底部。

Download the trial and give it a shot.

下载试用版并试一试。

http://www.jetbrains.com/profiler/

http://www.jetbrains.com/profiler/

Highly recommended!

强烈推荐!

Dave the Ninja

戴夫忍者

#1


12  

This is just a guess but i've seen slowness coming from having IPv6 enabled especially when using Firefox on localhost.

这只是猜测,但我看到启用IPv6的速度很慢,尤其是在localhost上使用Firefox时。

http://weblogs.asp.net/dwahlin/archive/2007/06/17/fixing-firefox-slowness-with-localhost-on-vista.aspx

http://weblogs.asp.net/dwahlin/archive/2007/06/17/fixing-firefox-slowness-with-localhost-on-vista.aspx

#2


4  

You could download dotTrace and profile your site.

您可以下载dotTrace并对您的网站进行个人资料。

I had a similar issue a few weeks ago and this application allowed me to get to the bottom of it in minutes.

几个星期前我遇到了类似的问题,这个应用程序让我在几分钟内就能找到它的底部。

Download the trial and give it a shot.

下载试用版并试一试。

http://www.jetbrains.com/profiler/

http://www.jetbrains.com/profiler/

Highly recommended!

强烈推荐!

Dave the Ninja

戴夫忍者