Application pool schedule restart

Posted on 2011-10-21
Medium Priority
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
  • 2

Accepted Solution

regevha earned 2000 total points
ID: 37007573
Application pool recycling can be done both on demand as well as scheduled, for details please refer to Microsoft Technet page http://technet.microsoft.com/en-us/library/cc753179(WS.10).aspx 

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

Regarding memory leaks, you may use the "Resource Exhaustion Prevention" http://technet.microsoft.com/en-us/library/dd393057(WS.10).aspx 
Please refer also to MSDN blog post http://blogs.technet.com/b/mikelag/archive/2010/09/04/detecting-low-virtual-memory-conditions-in-windows-2008.aspx 

For detailed tracing of processes memory consumption, you may consider using commercial Monitoring and Management solutions like "up.time"  http://www.uptimesoftware.com/metrics.php

Author Comment

ID: 37011315
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?


Expert Comment

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

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Suggested Courses

840 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