question

khailq avatar image
0 Votes"
khailq asked azure-cxp-api edited

Abnormal memory usage

I'm having a container web app, the memory usage pattern in the graph looks odd. Memory keeps increasing to around 90% but the application process takes about 50% only, sometime it downs to 0, do you know why?

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.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@khailq, Welcome to Microsoft Q&A! Thanks for posting this question.

On which region have you hosted your WebApp?
Has this been the case since the app was provisioned or you recently started to see this memory leak? If it's the latter, were there any changes performed prior to this issue?

Firstly, run the "Memory usage" diagnostic, to do this, use the Diagnose and solve problems blade in the Azure portal.
1. In the Azure portal, open the app in App Services.
2. Select Diagnose and solve problems.

alt text



In some high memory-consumption scenarios, your app might truly require more computing resources. In that case, consider scaling to a higher service tier so the application gets all the resources it needs. Other times, a bug in the code might cause a memory leak. A coding practice also might increase memory consumption. Getting insight into what's triggering high memory consumption is a two-part process: create a process dump, and then analyze the process dump (as highlighted in the screenshot).


Furthermore, you could also review the Service Health and Resource Health notifications - The ‘Service Health’ - Service issues view shows any ongoing problems in Azure services that are impacting your resources. You can understand when the issue began, and what services and regions are impacted. You can also read the most recent update to understand what Azure is doing to resolve the issue.
Where as the Resource health helps you diagnose and get support when an Azure issue impacts your resources. It informs you about the current and past health of your resources and helps you mitigate issues.



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.

khailq avatar image
0 Votes"
khailq answered khailq commented

hi @ajkuma-MSFT , the region is South-east Asia. This high memory consumption has happened since beginning but I've just noticed the dropping to 0 of memory recently. When checked processes in the container, I see it only takes total about 50%, what about the rest, how do I know all processes using memory of the instance?

Also is there an explanation for periodically drop to 0% of memory?

· 2
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.

Thank for the update! Getting insight into what's triggering high memory consumption is a two-part process: create a process dump, and then analyze the process dump (as highlighted in the screenshot).

As mentioned in my previous post - In some high memory-consumption scenarios, your app might truly require more computing resources. In that case, consider scaling to a higher service tier so the application gets all the resources it needs. Other times, a bug in the code might cause a memory leak. A coding practice also might increase memory consumption.

0 Votes 0 ·

Sorry I still don't get it, I see no connections between periodically drop memory consumption to 0%

0 Votes 0 ·
khailq avatar image
0 Votes"
khailq answered SehamMohamed-7487 Suspended commented

alt text



This is the dump process list from instance and I don't see there is memory leak from there, sum memory consumption would only take about 50 - 60 percent, what are the rest 20 - 30 percent consumption? I have no visibility on that.


· 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.

I wish to engage with you offline further for a detailed analysis and provide a specialized assistance, so could you please send an email to me - AzCommunity[at]Microsoft[dot]com referencing this thread, your Azure subscription ID and the WebApp name in question. Thanks!

0 Votes 0 ·