views:

360

answers:

4

I am using Visual Studio 2008 on a Windows 7 virtual machine for building a ASP MVC app. I have noticed recently that it has become painfully slow, some pages take upwards of 60 seconds to display. If I deploy these pages to a devserver to test they are very quick, almost instant. Also, if I manually step through the code to display the page it is much quicker than if I let it just run. I am debugging with the WebDev.DevServer and notice it sits up around 90% CPU when displaying.

Any ideas on what this might be?

+1  A: 

Antivirus software and Visual Studio don't tend to play well together. Could be that.

How long has VS been running? It could also be a general bug/memory leak in the program.

Randolpho
A: 

Is it compiling the project every time you load the page?

ryansstack
+5  A: 

VS2008 is a pig. I had a similar problem and an extra 1GB of RAM did wonders. Put as much RAM in your machine as your OS can use.

Also it helps to disable or restrict what your virus scanner is checking on access.

JohnFx
+1 - I have to agree, it is DOG slow, even more so on a VM.
Otávio Décio
I don't have any problem with it being slow. Although more memory is never a bad thing.
Unkwntech
I haven't had any real trouble with speed on a VM either - although my machine has 6GB RAM and 2GB dedicated to the VM. RAM's cheap these days - especially compared to the time and productivity hit of a slow dev environment!
Mark Brittingham
+3  A: 

Have you installed the Visual Studio Service Pack 1? I had some nasty performance issues, especially after adding ReSharper (which is great, btw), and SP1 fixed them nicely. I'll second JohnFx's comments about having plenty of RAM too.

Mark Brittingham