---
title: Application stops after being idle
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

In the default IIS configuration, the application pool in which Kentico runs stops the application's worker process after a 20-minute period of inactivity. This behavior causes the Kentico Event log to log warnings with the following message:

_HostingEnvironment initiated shutdown_

This shutdown period is determined by the **Idle time-out** setting in the application pool's advanced settings.

To change or disable the time-out period:

1. Open **IIS Manager** and select **Application Pools** in the Connections tree.
2. Click the application pool in which Kentico runs and click **Advanced Settings**.

   ![](https://docs.kentico.com/docsassets/k8/application-stops-after-being-idle/2.png)
3. In the **Process Model** section, locate the **Idle Time-out** setting and change its value. To disable the time-out altogether, enter _0_ (zero).

   ![](https://docs.kentico.com/docsassets/k8/application-stops-after-being-idle/1.png)
4. Click **OK** to save the settings.

If you set the Idle time-out setting to a non-zero value, IIS stops your application if the application doesn't receive any request in the specified time period. If you set the setting to zero, the application will run without shutting down even if it is idle.
