Configure IIS Application or Website to Restart Every Few Hours

Configure IIS Application or Website to Restart Every Few Hours

In this article, I’ll show you how to Configure IIS Application or Website to Restart Every Few Hours or days.

IIS

Internet Information Services (IIS, formerly Internet Information Server) is an extensible web server created by Microsoft for use with the Windows NT family.

IIS supports HTTP, HTTPS, FTP, FTPS, SMTP, and NNTP. It has been an integral part of the Windows Server family since Windows NT 4.0.

As of February 2017 IIS has a market share of 9.22%, making it the third most popular web server in the world, behind Apache at 41.41% and nginx at 28.34%.

IIS 10 included in Windows Server 2016 and Windows 10. This version includes support for HTTP/2.

You could use this article on any IIS 6.5 and above, just remember that once you apply the settings IIS will restart so make sure you do it after hours.

As you can see below, I’m using IIS 10 running on Windows Server 2016 Standard edition.

IIS allows us to configure Application Pool recycle which will reset the IIS Site hosted on the Application Pool.

Below, you will see my application Pool.

Note: If you have a few websites hosted on the Server check which Application Pool each website Is using.

IIS Management Console.
IIS Management Console.
Configuration

To configure IIS to automatically reset the application pool, Right click on the Application Pool -> Recycling

Below, you have will find a few options, Recycle every few hours, at specific times, etc and you could also use multiple options

Click next, and Select the Event Log options

Once configured. You will see an event for WAS

And In the details option, you will see the confirmation event

This is very useful when dealing with applications that require resetting every few hours or when a specific event happens.




Search blogs




Bitnami