Skip to main content

Tips To Scale Up IIS

I am writing this blog after long time, this time I have decided to write something on IIS 6.0.
Most of us are having very little knowledge on IIS 6.0 configuration and we know very little about the capabilities of IIS 6.0. Being a technical guy, the person who is involved in application development should know in and out of all the configuations which will help us to develope scalable application. I mean to say that, whether person is a Sr Manager or a trainee developer he should know all these tricks.

Following are some of the tricks which we can use to scale up IIS 6.0

1. Recycle
Recycle IIS processes on certain interval , though IIS does it on every 29 hours. Right click on 'Application Pool' , click on 'Properties' . Follwing window will get displayed.







Even you can specify timing when IIS should recycle worker process or on number of requests.

2. Grow Web Garden
This is one of the way to increase application pool performance. Web garder helps in a scenariao when worker processes gets hanged and nother worker process can take care of incoming requests.
3. Enable HTTP Compression
Its better to compress pages which IIS is serving, but its not good to compress all the files.
Not all the requested pages are generated dynamically, for example static HTML files are not generated dynamically , so its better to compress these files using HTTP compression , so next time when IIS receives request for these static files, it will get it from the cache. IIS does not need to compress it again.








Right click on 'Web Sites' -> 'Properties' and click on 'Service' tab to enable HTTP compression.

4. Connection Timeouts
HTTP connections may keep open while user downloading files from the server, IIS terminates these connections after 120 seconds by default.But you can adjust these connection timeout accordingly.
5. HTTP Keep Alive.

IIS enables Keep-Alive by default. The main advantage behind HTTP Keep Alive is , it does not allow server to close and open server connection again and again. This helps to optimize server performance

Please note, only some part of scalability is achieved through IIS configuration, if your code is not well written, database design is not proper and has number of open connections etc ect, then above mentioned tricks are of no use.

Comments

Popular posts from this blog

Installing Visual Studio 2012 with Update 2 CTP4

  Brian Harry has announced release of Visual Studio 2012 Update 2 CTP4 , this release contains significant improvements compared with other 3 releases and this is the final CTP release.  This weekend I have decided to refresh my environment with this latest Visual Studio 2012 Update 2 CTP4 release. Before I start, let me give some details on what’s new in Visual Studio 2012 Update 2 CTP4. Backup and restore Power Tool Preserve Configuration on Upgrade Servicing in High Availability SQL Environments (SQL Always On) Customizable kanban columns Visual Studio Git Extension You can complete details of new features here , you can download Visual Studio 2012 Update CTP4 from here http://go.microsoft.com/fwlink/?LinkId=273878 . My development environment setup (Note :this is my personal development environment setup and does not guarantee security or other features ) Application Tier : Windows Server 2012 Data Center Build 9200 Build Controller And Agent : Windows Server 2012 Da

Unwanted Usage of ‘var’ Keyword in c#

Since the introduction of ‘var’ keyword in C# 3.0, lots of developers started using it very large scale mode. I have done code reviews of lots of projects since the introduction of ‘var’ keyword and the trend of ‘var’ keyword is in usage of lots projects, and one thing what I noticed is that, ‘var’ keyword has made developer’s life much easier. If you are from a VB 6.0 background, usage of ‘var’ keyword was strictly prohibited only to certain places, developer should not get confused themselves with ‘var’ keyword from VB 6.0 or in JavaScript which both are totally unrelated. The main purpose behind ‘var’ keyword in C#, is to use it when the type in unknown. For example, I have a method which returns CustomerDetails and it contains information such as Customer ID, CustomerID,CustomerCity,Zip etc. which has different data types. Usage of ‘var’ keyword at everyplace makes code very difficult for other developers to understand. For example, a developer wants to check employee stat

Team Foundation Server

Team Foundation Server Being in a software industry and specially those who are closely working with Microsoft technology no need to explain what is Team Foundation Sever (TFS). Let me explain in brief what is Team Foundation Server (TFS) and the advantages associated. Team Foundation Server is a source control, project management tool, bug tracking tool, change management, build automation and so on … TFS has number of inbuilt functionalities if used in a proper way leads to a project success. TFS enables organizations to manage applications throughout the IT lifecycle. Source Control Most of the organization uses Visual Source Safe (VSS) as a source control, TFS is an advanced source control which allows user to manage work items in a systematic way, and e.g., TFS administrator can set a policy while performing check-in and check-out operations. Following screen shot shows the policy warning if it’s not been satisfied. TFS can be integrated with Visual Studio;