Sunday, July 5, 2015

Improve IIS Performance by effective ways


In this post I will try to explain the IIS configuration performance tuning and settings. My previous post Difference between throw and throw ex in Asp.Net C# exceptions.


Internet Information System simply called as IIS which is used host our application. While hosting an Application we need to concentrate on performance and concurrent users hits. Basic things we need to see, While user enter some invalid page IIS will automatically show 404 error page instead of we should provide some meaningful message with custom errors. We have developed our project in 32 bit and server may have 64 bit by default, so we have an option "Enable 32 bit Application" in Advanced settings kindly mark as true.

Shortcut to open IIS using run command just type inetmgr

While hosting the Application avoid .pdb files in published folder.While publish the application use release mode instead of giving debug mode.Use encrypted password in web.config connection string settings. Create individual Application Pool for every websites, because we can avoid Out of memory exception due to wpw3.exe cache size increases.This will improve the performance of the site.

Large SQL query execution avoid connection timeout by increasing the execution time out in web.config file
<httpRuntime executionTimeout="3600" />

We are able to show temporary shutdown message by simply adding app_offline.html(we can use any image or text in this file) in published folder. Note this will work only on .aspx pages if we may have .html page it will show the orginal page. Best way to restart the IIS, go to run command and type IISRESET this will immediately close and restart the application and release the temporary memory. But carefully do this because if you are having multiple application in IIS means it will stop/start all the Application pool including default Application Pool.

Configure HTTP Response Header expiration. This option will helps us to minimize the number of hits to IIS by viewers. HTTP Response header expires the client browser page cache and its contents such as images,JavaScript, CSS etc. In IIS double click HTTP response headers, and then select "set common HTTP Response headers". Then click "Expire web content" and select immediately option.

We can disable the ASP debugging for server and client in IIS. While running Application in Live server, we do not need to use the ASP debugging mode in IIS. Application will be very fast by disabling this mode in IIS. To disable debugging, Go to Advanced settings select the "compilation" and then click on "debugging properties" and set false for Server side debugging and Client side debugging

Enabling the output caching in IIS will keep a copies of the user requested pages. If the same page has been requested by a different user, IIS will send the copies from cache by without reproducing the same page.

In this post i tried to explain the IIS configuration performance tuning and settings. My previous post Difference between throw and throw ex in Asp.Net C# exceptions.


  1. great doing. and i happy to visit your blog to know about this wonderful information. thanks for sharing. keep updating.
    ccna Training in Chennai

  2. I have been following you for a couple of months now but this is my first time commenting on a blog post. Thank you for sharing your knowledge and experience with us. Keep up the good work. Already bookmarked for future reference.

    SAP training in Chennai

  3. I have read your blog its very attractive and impressive. I like it your blog.

    Dot Net Training in Chennai Dot Net Training in Chennai .Net Online Training .Net Online Training Dot Net Training in Chennai Dot Net Training in Chennai

    Dot Net Online Training Dot Net Online Training LINQ Online Training LINQ Online Training ASP.NET Online Training ASP.NET Online Training

  4. Really very nice blog information for this one and more technical skills are improve,i like that kind of post.

    Dot Net training in chennai

  5. Great article Glad to find your blog. Thanks for sharing.
    oracle training in chennai

  6. hi welcome to this blog. really you have post an informative blog. it will be really helpful to many peoples. thank you for sharing this blog.
    dot net training in chennai

  7. Thanks for your informative blog!!! Your article helped me to understand the future of .net programming language. Keep on updating your with such awesome information.

    dot net training in chennai

  8. The blog gave me idea to improve IIS performance My sincere thanks for sharing this post Please continue to share this post
    Dot Net Training in Chennai

  9. This post discuss about Remote IIS Debugging Web App On IIS and Various Authentication Mode.

  10. It is really a great work and the way in which u r sharing the knowledge is excellent.Thanks for helping me to understand basic concepts. As a beginner in Dot Net programming your post help me a lot.Thanks for your informative article.
    dot net training in chennai

  11. Given so much information in it. its very useful .perfect explanation about Dot net framework.Thanks for your valuable information. Big data Analytics Training in Chennai | Software Testing Training in Chennai