What is an Application Pool?
An Application Pool is a mechanism used by IIS to isolate
Web Applications, allowing you to have different configurations (security,
resource usage, etc) and preventing misbehaving applications from interfering
with other applications.
Generally, each Application Pool corresponds to one
worker process. A worker process is a windows process (w3wp.exe) which runs Web
Applications, and is responsible for handling requests sent to a Web Server for
a specific application pool.
What is Application Pool Recycling in IIS?
Recycling means the worker process that handles requests
for that application pool is terminated and a new one started. This is
generally done to avoid unstable states that can lead to application crashes,
hangs, or memory leaks.
By default IIS will use overlapped recycle method, which
keeps the old process up until the current requests are finished processing (or
a set timeout elapses) while the new process handles new requests. This ensures
service continuity so that you usually do not notice a recycle.
Where can I configure Automatic Application Pool
Recycling?
In Windows 2003
Go to Start -> Administrative Tools -> Internet
Information Services (IIS) Manager. Expand the server and the “Application
Pools” Group. Right-click the Application Pool you wish to configure and select
“Properties”. In the first tab you will find the recycling settings.
In Windows 2008 R2
Go to Start -> Administrative Tools -> Internet
Information Services (IIS) Manager. Expand the server and click on “Application
Pools”. In the center window right-click the Application Pool you wish to
configure and select “Recycling...” ( be careful not to click “Recycle...”
which will start a recycle).
You will be shown a two-step “wizard”. In the first half you will select which settings to use and in the second, which you want to log (in windows event logs) in case they are triggered.
What are the recommended values to use for Out Systems
Applications?
You can check the base initial recommended values for an
Out Systems Platform Installation in the Installation Checklist.
These values are only initial guidelines: you should
fine-tune your memory configuration by collecting performance data from
each application pool and adjusting these values accordingly.
The values should be:
- High enough not to cause unnecessary recycles under
load;
- Low enough that the recycle is triggered before it
affects other application pools.
After collecting data on real-world usage, you can parcel the available memory proportionally between the application pools. You should review these values periodically as the usage of your applications changes or you deploy new applications.
No comments :
Post a Comment