App service plan constant high memory usage and always scales to max instances

Erfan Nariman 436 Reputation points
2022-02-13T19:49:44.277+00:00

We have an app service plan which is being used by 12 azure functions. All of these functions run once a day for some data processing and are trigger by a timer. So this app service plan is used 12 times a day. Still we see the memory usage constant at 80% and it is always scaled to 5 instances (which is our max instances allowed).

Also as soon as we enabled the scale out option, it instantly scaled to 5 instances.

So we are wondering, what is causing the high memory usage, although there is nothing running at that moment and how would we solve this?

173819-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,267 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
207 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alan Kinane 16,786 Reputation points MVP
    2022-02-14T10:04:40.907+00:00

    If this is an App Service Plan then I would start by looking at the diagnostics tools that come with this service. This should give you some additional insights into what is happening.

    https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics

    174082-image.png

    After that, you might want to deploy Application Insights if you haven't already as this will give you more application specific telemetry for your functions.

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitoring