views:

522

answers:

3

Hi, for my webapp the integrated Visual Studio Server (Cassini) ist much slower than IIS. How can I speed up Cassini so that i dont have to wait for 3s for every small page?

+2  A: 
  1. Determine why you think the web server is the culprit.
    How did you determine that it was the web server? How did you measure this 3 seconds? Is it on every page, or just certain pages? Is it continuous, or does it get better after a while?

  2. Determine what aspect of the slow web server is the problem. Is there a lot of CPU in use? Memory? Are there other things happening when this happens? When you're using IIS, are you running on the same computer that had the slow Cassini? Is everything else the same? Same database server? Same hard disks in use?

You've got to narrow things down, as in any performance analysis.

John Saunders
+5  A: 

Are you seeing this on a Web Application Project or a Website Project?

If it's a Website, then the issue just may be that the Development Server needs to compile each page the first time it's executed. Are subsequent requests of the same page faster?

If it's a Web Application Project then Visual Studio compiles it all before the Development Server runs it. In this case, are you sure it's the Development Server? Is there the same delay for EVERY page in the application?

Also, Are you sure it isn't disk or database latency?

Chris Pietschmann
+1 for having to compile the page first hit
Ian Boyd
A: 

What's Cassini?

The original name of the Visual Studio Development Server, used for local testing of web applications by developers.
John Saunders
-1. This should have been a comment, not an answer.
Jacob