Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Average Memory working set and Memory working set in Azure

I have an app service in Azure. It shows two metrics called Average Memory Working Set and Memory Working Set. Now, Memory Working Set is defined as the set of memory pages touched recently by the threads in the process. The graph for these two as shown in the portal are as below:

enter image description here enter image description here

Now, there are three questions that I have:

  1. How do I find out what is the dedicated maximum memory my service has? What will happen once the limit is reached?
  2. Memory Working Set is the number of memory pages touched recently by the threads in the process. I think that this means that the memory working set will only increase if my code has some memory leak, causes other pages to be loaded in memory etc. The question that I have is whether any external factors like number of requests have any effect on the Memory Working Set i.e. if the requests went up from 200 to 500, will the Memory Working Set increase? If yes, why?

  3. How is Average Memory Working Set calculated? Is it calculated over time? Looking at the graph I see that the Average Memory Working Set and Memory Working Set have almost similar values.

like image 525
AvinashK Avatar asked Nov 08 '22 15:11

AvinashK


1 Answers

Let me try to answer as much as I can:

1.a To know dedicated maximum memory, you should check "private working set" for the process. I guess you can find this information in task manager or with help of KUDU(in Azure). Do some google, you'll find it easily.

1.b Once the limit is reached process will access Shared working set.

2.a Memory working set is 'Current amount of memory used by the app in MiBs'.

2.b If request went up by 2.5x times as you quoted, then Memory working set is most likely to increase as new object would get created, provided that there is shareable physical memory that can be allocated.

3.a Average Working Memory Set is 'The average amount of memory in MiBs used by the app'

like image 76
Akash Nagar Avatar answered Nov 14 '22 21:11

Akash Nagar