是什么原因导致在IIS应用程序池回收? [英] What causes an application pool in IIS to recycle?

查看:542
本文介绍了是什么原因导致在IIS应用程序池回收?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找这个信息无济于事。为什么我需要这个的背景是<一个href=\"http://stackoverflow.com/questions/271944/storing-temporary-user-files-in-aspnet-in-medium-trust\">another问题我问这里。更具体地说,它创建/更新/的App_Data中删除文件会导致池回收?

I have been searching for info on this to no avail. The context of why i need this is another question I asked here. More specifically, does creating/updating/deleting files in App_Data cause a pool recycle?

如果有人可以提供什么原因导致回收的详细列表,这将是巨大的。

If someone could provide a detailed list of what causes a recycle, that would be great.

更新:作为两个用户已经发现我也很乐意回答指定的,而不是只回收的AppDomain整个游泳池的原因。

UPDATE: As two users already noticed I would also be happy to an answer specifying reasons for recycling the AppDomain only and not the whole pool.

推荐答案

两种不同的效果 - 在程序池进程是潜在的多个AppDomain的主机。通常,这可以通过许多的效果例如可以回收时间 - 每一个N个小时,缺乏的请求,内存使用等配置在IIS配置管理器

Two different effects - the AppPool process is the host for potentially multiple appdomains. Typically this can be recycled by a number of effects e.g. time - every 'n' hours, lack of requests, memory use etc. Configured in IIS Config Manager.

AppDomain中 - 您的应用程序根目录的托管实例,可以更频繁地循环而不影响程序池的AppDomain其他。苔丝对AppDomain的回收职位是pretty见地

AppDomain - the hosted instance of your application root, can be cycled more frequently without affecting other AppDomains in the AppPool. Tess' post on AppDomain recycling is pretty insightful

<一个href=\"http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx\">http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx

您正在编写监测重新编译文件夹 - 这将触发的AppDomain娱乐在某一点

You are writing to a folder monitored for recompilation - this will trigger the appdomain recreation at some point.

事件日志将帮助您确定原因发起的回收再利用。

Event log will help you determine cause initiated the recycled.

这篇关于是什么原因导致在IIS应用程序池回收?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆