question

CarloMendoza-6482 avatar image
0 Votes"
CarloMendoza-6482 asked azure-cxp-api edited

Azure App Service Unloads during off peak usage hours Memory Working Set goes to 0 bytes

I have an app service (Azure Mobile App) that I just noticed seems to get unloaded when there are no active clients for a while--typically 5PM to 6AM.

It sometimes takes a few minutes for the service to "come alive" again when the first client of the day requests data, and that's not a good experience for that client.

How do I make sure it remains loaded/kept alive?

This is the Memory working set, Avg graph which is what clued me into thinking it's getting unloaded.

alt text


azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CarloMendoza-6482 avatar image
1 Vote"
CarloMendoza-6482 answered lextm commented

I just found out from the Azure Portal to allow "Always On," I need at least Basic

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If you don't want to upgrade the tier, you can simply run a schedule tasks somewhere (Azure Function for example) to periodically ping the service.

0 Votes 0 ·
bpelikan avatar image
1 Vote"
bpelikan answered

This is known as cold start. Have you tried to set Always On on App Settings?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.