is there a way to set the timeout of an app pool of a web-site running under azure sites.
I have a site running there and it seems like it needs to spin up again when it has been idle for a while.
No, you are not able to increase the timeout of azure app services as because it is set to 230 seconds and it is he default value set by an azure load balancer. Although, you can move that IIS hosted over a Virtual machine where you can able to handle over those settings.
This timeout is not configurable, and this cannot be changed.
The idle timeout determines the number of minutes the application pool (and thus the application Enterprise Tester) will be held in memory, with any requests being made, before the application is automatically unloaded from memory. On most default IIS installations, this value will default to 20 minutes.
Since the relevant answer is in the comments it is easy to miss it. Currently Azure Web Apps support the Always On
feature, that keeps your app in memory. It is available in Basic
and upper tiers and you can configure it from the portal:
Resource_Group > Web App > Settings > Application settings
If you want to achieve the same effect in Free
or Shared
tiers you can create a webjob
that will ping your website to keep it in memory. There are numerous blog posts how to achieve this 1, 2, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With