Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Speed up your IIS

Is there any way to improve the performance of your IIS by changing some configuration parameters?

Or do you have any tips in general on how to improve the performance of a ASP.NET app?

like image 991
Sebastian Hoitz Avatar asked Mar 06 '09 15:03

Sebastian Hoitz


People also ask

Why is IIS so slow?

An IIS or ASP.NET hang can cause your website to have slow page loads, timeouts, or 503 Service Unavailable errors. Hangs can be caused by blocked ASP.NET threads, bad configuration, or request queueing.

How do I fix IIS worker process high CPU?

Fix high CPU usage in the IIS worker process. To fix the high CPU usage, you will need to do two things: Eliminate the blockages causing poor performance under high CPU usage (making your workload more elastic). Reduce CPU usage of the application code, to avoid CPU overloads and be able to handle more traffic.

How do I increase the thread pool size in IIS?

To change how the IIS thread pool works, and how many threads it provides for your workload, you can modify a number of registry values under the registry key HKLM\System\CurrentControlSet\Services\InetInfo\Parameters. The configured maximum number of threads (per processor) in the IIS thread pool.


4 Answers

  • Remember to turn off 'debug' in the web.config
  • don't use wildcard file mapping.
  • Use httpCompression to improve perceived performance
  • Throttle bandwidth to improve overall perceived performance
  • Try use IIS7 for .net apps

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/71490aae-f444-443c-8b2a-520c2961408e.mspx?mfr=true

like image 54
missaghi Avatar answered Oct 20 '22 17:10

missaghi


Your first port of call should be here:-

http://developer.yahoo.com/performance/rules.html

like image 28
AnthonyWJones Avatar answered Oct 20 '22 16:10

AnthonyWJones


Have you looked into Caching? or micro-caching Take a look at http://www.dnrtv.com/default.aspx?showNum=85.

like image 4
Bob The Janitor Avatar answered Oct 20 '22 17:10

Bob The Janitor


On the other hand, you may try IIS Tuner open source tool for optimization

like image 4
Zuuum Avatar answered Oct 20 '22 15:10

Zuuum