IIS7 Application Pool Auto-recycle shutdown solution

Source: Internet
Author: User

To add a timed task to the ASP. Application, it must have been a thread that kept doing timed calculations.

Added the Quartz.net framework to your ASP. NET Application

At night or the site after the no-access phase, the background scheduled threads and computing tasks are stopped, if you crawl the Application_End event, you will find that this event is actually called.


That must be the mechanism of application pool recycling for IIS in mischief. Because of IIS's default settings, if a site is in an application pool that has not been accessed or requested for more than a period of time, IIS automatically reclaims the program pool and kills the process. The quartz scheduled task also stopped automatically.


However, we can set the application pool parameters so that they are not automatically recycled (some cases cannot be avoided, such as a hot-deployed site, the number of errors overrun, etc.)


In IIS, locate the program pool used by this site, and click "Advanced Settings ..."

In the list that opens, change the following settings:

Recycle--Fixed time interval (minutes) changed to 0

--Virtual/private memory limit (KB) changed to 0

Process Model-idle timeout (minutes) changed to 0


This way, in general, the program pool will not be automatically recycled, the background quartz scheduled tasks will work properly

IIS7 Application Pool Auto-recycle shutdown solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.