IIS: Idle Timeout vs Recycle

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?

 

回答

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.

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(345)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2018-07-26 Can't remove netstandard folder from output path (.net standard)
2018-07-26 website项目的reference问题
2018-07-26 The type exists in both DLLs
2017-07-26 how to backup and restore database of SQL Server
点击右上角即可分享
微信分享提示