Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS: Idle Timeout vs Recycle

In IIS there are two areas (well, more than two) where recycling can occur:

  1. Under the "Process Model" section → "Idle Timeout" (default 20 minutes)

and

  1. Under the "Recycle" section → "Regular Time Interval" (default 1740 minutes)

My questions are:

  1. What are the differences between the two methods?
  2. What are the negative implications of settings them to 0?
like image 554
Ricky Avatar asked Nov 14 '13 18:11

Ricky


People also ask

What is IIS idle timeout?

IIS has a idle time-out property that is by default set to 20 minutes. This means that if no request comes for your site for 20 minutes of inactivity, IIS would kill the worker process to free-up resources. This means the memory utilised by loading of classes, session etc.

What does recycle mean in IIS?

What is application pool recycling in IIS? Recycling means that the worker process that handles requests for that application pool is terminated and a new one is started. This is generally done to avoid unstable states that can lead to application crashes, hangs, or memory leaks.

What is the difference between idle timeout and session timeout?

The course idle time out works in-conjunction with session timeout length. When the user's session is about to expire, the system displays a warning message: If the user chooses to continue their session, then the timer is reset. The user can continue completing their training and remain logged in to the system.


1 Answers

Idle Timeout is if no action has been asked from your web app, it the process will drop and release everything from memory

Recycle is a forced action on the application where your processed is closed and started again, for memory leaking purposes and system health

The negative impact of both is usually the use of your Session and Application state is lost if you mess with Recycle to a faster time.(logged in users etc will be logged out, if they where about to "check out" all would have been lost" that's why recycle is at such a large time out value, idle timeout doesn't matter because nobody is logged in anyway and figure 20 minutes an no action they are not still "shopping"

The positive would be get rid of the idle time out as your website will respond faster on its "first" response if its not a highly active site where a user would have to wait for it to load if you have 1 user every 20 minutes lets say. So a website that get his less then 1 time in 20 minutes actually you would want to increase this value as the website has to load up again from scratch for each user. but if you set this to 0 over a long time, any memory leaks in code could over a certain amount of time, entirely take over the server.

like image 83
MichaelEvanchik Avatar answered Sep 18 '22 17:09

MichaelEvanchik