Application pool schedule restart

Posted on 2011-10-21
Last Modified: 2012-05-12
Hi there,

I would like ti know how to schedule an IIS application pool restart to happen twice daily. Can this be done via the IIS MMC or would need to be scripted?

I would also like to catch which process is causing a possible memory leak, is there a way to log and catch this?

Question by:mick108201
    LVL 6

    Accepted Solution

    Application pool recycling can be done both on demand as well as scheduled, for details please refer to Microsoft Technet page

    You can also recycle using a command: appcmd recycle apppool / APP_POOL_NAME

    Regarding memory leaks, you may use the "Resource Exhaustion Prevention"
    Please refer also to MSDN blog post

    For detailed tracing of processes memory consumption, you may consider using commercial Monitoring and Management solutions like "up.time"

    Author Comment

    Thanks for the information.  I've set a schedule to restart during the night. With regards to Resource Exhaustion Prevention, its not clear in the article how you configure this? Could you break it down into steps?

    LVL 6

    Expert Comment

    Regarding "Resource Exhaustion Prevention", please ask assistance from other experts.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    I have been working as System Administrators since 2003. I recently started working as a FreeLancer and was amazed to find out that very few people are taking full advantage of their Windows Server Machines. Microsoft Windows Server comes with so…
    Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now