Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC performance has suddenly become very slow

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

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

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

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.

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.
  • 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.

Any ideas what else it could be?

like image 861
Iain Holder Avatar asked Feb 13 '09 13:02

Iain Holder


People also ask

Why is my asp net site so slow?

There can be numerous reasons why . NET applications can be slow. These include incorrect memory sizing, GC pauses, code-level errors, excessive logging of exceptions, high usage of synchronized blocks, IIS server bottlenecks, and so on.

Why are ASP Net Applications slightly slower on first load?

5 Answers. Show activity on this post. Typically an application will always take a little extra time to load as the application domain starts up. Things helping exacerbate this could be anything from poorly written code (IE: Application_Start) to certain libraries you may be using (ORMs for example).

Why is MVC faster?

1. Faster development process: MVC supports rapid and parallel development. If an MVC model is used to develop any particular web application then it is possible that one programmer can work on the view while the other can work on the controller to create the business logic of the web application.


2 Answers

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

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

like image 157
malsmith Avatar answered Oct 02 '22 15:10

malsmith


You could download dotTrace and profile your site.

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/

Highly recommended!

Dave the Ninja

like image 27
Dave The Ninja Avatar answered Oct 01 '22 15:10

Dave The Ninja